다음을 통해 공유


PipelineComponent.ProvideComponentProperties Method

Called when a component is first added to the data flow task, to initialize the ComponentMetaData of the component.

네임스페이스: Microsoft.SqlServer.Dts.Pipeline
어셈블리: Microsoft.SqlServer.PipelineHost (in microsoft.sqlserver.pipelinehost.dll)

구문

‘선언
Public Overridable Sub ProvideComponentProperties
public virtual void ProvideComponentProperties ()
public:
virtual void ProvideComponentProperties ()
public void ProvideComponentProperties ()
public function ProvideComponentProperties ()

주의

This method is called when a component is first added to a data flow task. It is similar to a constructor and is the method that initializes a component. Components should add their inputs, outputs, and custom properties during this method.

The base class adds synchronous IDTSInput90 and IDTSOutput90 object to the ComponentMetaData.

For more information, see Design-time Methods of a Data Flow Component.

public override void ProvideComponentProperties()
{
    // Reset the component.
    base.RemoveAllInputsOutputsAndCustomProperties();
    IDTSInput90 input = ComponentMetaData.InputCollection.New();
    input.Name = "Input";

    IDTSOutput90 output = ComponentMetaDAta.OutputCollection.New();
    output.Name = "Output";
    output.SynchronousInputID = input.ID;

    IDTSCustomProperty90 property = ComponentMetaData.CustomPropertyCollection.New();
    property.Name = "RuntimeVariable";
    property.Description = "Identifies a Variable in the package.";
}
Public Overrides Sub ProvideComponentProperties() 
 MyBase.RemoveAllInputsOutputsAndCustomProperties 
 Dim input As IDTSInput90 = ComponentMetaData.InputCollection.New 
 input.Name = "Input" 
 Dim output As IDTSOutput90 = ComponentMetaDAta.OutputCollection.New 
 output.Name = "Output" 
 output.SynchronousInputID = input.ID 
 Dim property As IDTSCustomProperty90 = ComponentMetaData.CustomPropertyCollection.New 
 property.Name = "RuntimeVariable" 
 property.Description = "Identifies a Variable in the package." 
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