PipelineComponent.ReinitializeMetaData Method
Repairs any errors identified during validation that cause the component to return VS_NEEDSNEWMETADATA at design time.
Espace de noms: Microsoft.SqlServer.Dts.Pipeline
Assembly: Microsoft.SqlServer.PipelineHost (in microsoft.sqlserver.pipelinehost.dll)
Syntaxe
'Déclaration
Public Overridable Sub ReinitializeMetaData
public virtual void ReinitializeMetaData ()
public:
virtual void ReinitializeMetaData ()
public void ReinitializeMetaData ()
public function ReinitializeMetaData ()
Notes
The ReinitializeMetaData method is called in response to the component returning VSNEEDSNEWMETADATA from Validate. Components should implement code that fixes these errors.
Exemple
public override DTSValidationStatus Validate()
{
if (!ComponentMetaData.AreInputColumnsValid)
return DTSValidationStatus.VS_NEEDSNEWMETADATA;
}
public override void ReinitializeMetaData()
{
if (!ComponentMetaData.AreInputColumnsValid)
ComponentMetaData.RemoveInvalidInputColumns();
}
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
Sécurité des threads
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Plateformes
Plateformes de développement
Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.
Plateformes cibles
Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.
Voir aussi
Référence
PipelineComponent Class
PipelineComponent Members
Microsoft.SqlServer.Dts.Pipeline Namespace