PipelineComponent.ProvideComponentProperties 메서드

정의

컴포넌트가 데이터 플로우 태스크에 처음 추가될 때 호출되어 컴포넌트의 초 ComponentMetaData 기화를 수행합니다.

public:
 virtual void ProvideComponentProperties();
public virtual void ProvideComponentProperties();
abstract member ProvideComponentProperties : unit -> unit
override this.ProvideComponentProperties : unit -> unit
Public Overridable Sub ProvideComponentProperties ()

예제

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

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

    IDTSCustomProperty100 property = ComponentMetaData.CustomPropertyCollection.New();  
    property.Name = "RuntimeVariable";  
    property.Description = "Identifies a Variable in the package.";  
}  
Public Overrides Sub ProvideComponentProperties()   
 MyBase.RemoveAllInputsOutputsAndCustomProperties   
 Dim input As IDTSInput100 = ComponentMetaData.InputCollection.New   
 input.Name = "Input"   
 Dim output As IDTSOutput100 = ComponentMetaDAta.OutputCollection.New   
 output.Name = "Output"   
 output.SynchronousInputID = input.ID   
 Dim property As IDTSCustomProperty100 = ComponentMetaData.CustomPropertyCollection.New   
 property.Name = "RuntimeVariable"   
 property.Description = "Identifies a Variable in the package."   
End Sub  

설명

이 메서드는 컴포넌트가 데이터 플로우 작업에 처음 추가될 때 호출됩니다. 이 방법은 구성자와 유사하며, 컴포넌트를 초기화하는 메서드입니다. 컴포넌트는 이 메서드에서 입력, 출력, 그리고 커스텀 속성을 추가해야 합니다.

기본 클래스는 동기 IDTSInput100IDTSOutput100 및 객체를 ComponentMetaData추가합니다.

자세한 내용은 Data Flow 구성 요소의 설계 시 방법을 참조하세요.

적용 대상