Export (0) Print
Expand All
Expand Minimize

PipelineComponent.ReinitializeMetaData Method

Repairs any errors identified during validation that cause the component to return VS_NEEDSNEWMETADATA at design time.

Namespace:  Microsoft.SqlServer.Dts.Pipeline
Assembly:  Microsoft.SqlServer.PipelineHost (in Microsoft.SqlServer.PipelineHost.dll)

'Declaration
Public Overridable Sub ReinitializeMetaData
'Usage
Dim instance As PipelineComponent

instance.ReinitializeMetaData()

The ReinitializeMetaData method is called in response to the component returning VSNEEDSNEWMETADATA from Validate. Components should implement code that fixes these errors.

Public Overrides Function Validate() As DTSValidationStatus 
 If Not ComponentMetaData.AreInputColumnsValid Then 
   Return DTSValidationStatus.VS_NEEDSNEWMETADATA 
 End If 
End Function 

Public Overrides Sub ReinitializeMetaData() 
 If Not ComponentMetaData.AreInputColumnsValid Then 
   ComponentMetaData.RemoveInvalidInputColumns 
 End If 
End Sub
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft