PipelineComponent.ReinitializeMetaData Method
Repairs any errors identified during validation that cause the component to return VS_NEEDSNEWMETADATA at design time.
네임스페이스: Microsoft.SqlServer.Dts.Pipeline
어셈블리: Microsoft.SqlServer.PipelineHost (in microsoft.sqlserver.pipelinehost.dll)
구문
‘선언
Public Overridable Sub ReinitializeMetaData
public virtual void ReinitializeMetaData ()
public:
virtual void ReinitializeMetaData ()
public void ReinitializeMetaData ()
public function ReinitializeMetaData ()
주의
The ReinitializeMetaData method is called in response to the component returning VSNEEDSNEWMETADATA from Validate. Components should implement code that fixes these errors.
예
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
스레드 보안
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.
플랫폼
개발 플랫폼
지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.
대상 플랫폼
지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.
참고 항목
참조
PipelineComponent Class
PipelineComponent Members
Microsoft.SqlServer.Dts.Pipeline Namespace