Export (0) Print
Expand All

PipelineComponent.ReinitializeMetaData Method ()

 

Applies To: SQL Server 2016 Preview

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)

public virtual void ReinitializeMetaData()

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

Legacy Code Example

public override DTSValidationStatus Validate()
{
    if (!ComponentMetaData.AreInputColumnsValid)
        return DTSValidationStatus.VS_NEEDSNEWMETADATA;
}
public override void ReinitializeMetaData()
{
    if (!ComponentMetaData.AreInputColumnsValid)
        ComponentMetaData.RemoveInvalidInputColumns();
}
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft