IDTSDesigntimeComponent100.ProvideComponentProperties 메서드

Initializes the ComponentMetaData of the component when a component is first added to the data flow task.

네임스페이스:  Microsoft.SqlServer.Dts.Pipeline.Wrapper
어셈블리:  Microsoft.SqlServer.DTSPipelineWrap(Microsoft.SqlServer.DTSPipelineWrap.dll)

구문

‘선언
Sub ProvideComponentProperties
‘사용 방법
Dim instance As IDTSDesigntimeComponent100

instance.ProvideComponentProperties()
void ProvideComponentProperties()
void ProvideComponentProperties()
abstract ProvideComponentProperties : unit -> unit
function ProvideComponentProperties()

주의

This method is called when a component is added to a data flow task for the first time. 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.

When programmatically adding components to the data flow task, you call this method after adding the component to the ComponentMetaDataCollection, setting the ComponentClassID property, and instantiating the design-time instance of the component.

The following example creates a data flow task, adds the OLE DB source component to the task, instantiates the design-time instance of the component, and then calls ProvideComponentProperties.

Package p = new Package();
MainPipe dataFlow = ((TaskHost)p.Executables.Add("DTS.Pipeline")).InnerObject as MainPipe;

IDTSComponentMetaData100 md = dataFlow.ComponentMetaDataCollection.New();
md.ComponentClassID = "DTSAdapter.OleDbSource";
CManagedComponentWrapper wrp = md.Instantiate();
wrp.ProvideComponentProperties();
Dim p As Package = New Package 
Dim dataFlow As MainPipe = CType(CType(p.Executables.Add("DTS.Pipeline"), TaskHost).InnerObject, MainPipe) 
Dim md As IDTSComponentMetaData100 = dataFlow.ComponentMetaDataCollection.New 
md.ComponentClassID = "DTSAdapter.OleDbSource" 
Dim wrp As CManagedComponentWrapper = md.Instantiate 
wrp.ProvideComponentProperties

참고 항목

참조

IDTSDesigntimeComponent100 인터페이스

Microsoft.SqlServer.Dts.Pipeline.Wrapper 네임스페이스