共用方式為


IDTSDesigntimeComponent100 介面

Defines the design-time methods of a data flow component written in C++ and COM.

命名空間:  Microsoft.SqlServer.Dts.Pipeline.Wrapper
組件:  Microsoft.SqlServer.DTSPipelineWrap (在 Microsoft.SqlServer.DTSPipelineWrap.dll 中)

語法

'宣告
<GuidAttribute("B13097E5-4465-4A9C-BB74-FFC8F8E30760")> _
Public Interface IDTSDesigntimeComponent100
'用途
Dim instance As IDTSDesigntimeComponent100
[GuidAttribute("B13097E5-4465-4A9C-BB74-FFC8F8E30760")]
public interface IDTSDesigntimeComponent100
[GuidAttribute(L"B13097E5-4465-4A9C-BB74-FFC8F8E30760")]
public interface class IDTSDesigntimeComponent100
[<GuidAttribute("B13097E5-4465-4A9C-BB74-FFC8F8E30760")>]
type IDTSDesigntimeComponent100 =  interface end
public interface IDTSDesigntimeComponent100

IDTSDesigntimeComponent100 型別公開下列成員。

方法

  名稱 說明
公用方法 AcquireConnections Establishes a connection to a connection manager.
公用方法 DeleteExternalMetadataColumn Deletes the external metadata column at the specified index from the collection of external metadata columns.
公用方法 DeleteInput Deletes an IDTSInput100 object from the IDTSInputCollection100 collection.
公用方法 DeleteOutput Deletes an IDTSOutput100 object from the IDTSOutputCollection100 collection.
公用方法 DeleteOutputColumn Deletes an IDTSOutputColumn100 object from the IDTSOutputColumnCollection100 collection.
公用方法 DescribeRedirectedErrorCode Returns the description of the specified error code.
公用方法 GetEnumerationCollection Returns the IDTSFriendlyEnumCollection100 of a component.
公用方法 InsertExternalMetadataColumnAt Inserts a new external metadata column into the collection of external metadata columns at the specified index.
公用方法 InsertInput Adds an IDTSInput100 object to the IDTSInputCollection100.
公用方法 InsertOutput Adds a new IDTSOutput100 object.
公用方法 InsertOutputColumnAt Creates a new IDTSOutputColumn100 object and inserts it into the IDTSOutputColumnCollection100.
公用方法 MapInputColumn Establishes a relationship between an input column and a corresponding external metadata column.
公用方法 MapOutputColumn Establishes a relationship between an output column and a corresponding external metadata column.
公用方法 OnDeletingInputColumn Called when deleting an IDTSInputColumn100 object from the IDTSInputColumnCollection100.
公用方法 OnInputPathAttached Called when an IDTSInput100 object is connected to another component through the IDTSPath100 interface.
公用方法 OnInputPathDetached Called when an IDTSPath100 object that contains the specified IDTSInput100 object is deleted.
公用方法 OnOutputPathAttached Called when an IDTSOutput100 object of the component is attached to a downstream component.
公用方法 ProvideComponentProperties Initializes the ComponentMetaData of the component when a component is first added to the data flow task.
公用方法 ReinitializeMetaData Fixes any errors identified during design-time validation that result in the component returning VS_NEEDSNEWMETADATA.
公用方法 ReleaseConnections Frees the connections established during AcquireConnections at either design time or run time.
公用方法 SetComponentProperty Assigns a value to an IDTSCustomProperty100 of a component.
公用方法 SetExternalMetadataColumnDataTypeProperties Sets the data type properties of the specified external metadata column.
公用方法 SetExternalMetadataColumnProperty Sets an individual property of an external metadata column.
公用方法 SetInputColumnProperty Assigns a value to the IDTSCustomProperty100 of an IDTSInputColumn100 object.
公用方法 SetInputProperty Assigns a value to the IDTSCustomProperty100 of an IDTSInput100 object.
公用方法 SetOutputColumnDataTypeProperties Sets the data type properties of an IDTSOutputColumn100 object.
公用方法 SetOutputColumnProperty Sets the value of an IDTSCustomProperty100 for an IDTSOutputColumn100 object.
公用方法 SetOutputProperty Sets the value of an IDTSCustomProperty100 on an IDTSOutput100 object.
公用方法 SetUsageType Creates an IDTSInputColumn100 object in the IDTSInputColumnCollection100 of the component and sets the UsageType property of the column.
公用方法 Validate Verifies that the component is correctly configured.

上層

備註

This interface is one of two interfaces implemented by data flow components; IDTSRuntimeComponent100 is the other. This interface defines the design-time interface for a component and contains methods that are called when the component properties and collections of the ComponentMetaData are modified. Managed component developers do not explicitly implement this interface, and instead use the PipelineComponent base class, which implements the methods of both these interfaces.

When programmatically adding or modifying existing components in a data flow task, the design-time instance of a component should be used instead of accessing the component metadata directly. Modifying the ComponentMetaData directly bypasses the ability of the component to validate and reject changes to its metadata, and should be avoided. Managed code developers access the design-time instance of a component, and use the methods of the IDTSDesigntimeComponent100 interface, through the CManagedComponentWrapper.

範例

The following code example demonstrates how to access the design-time instance of a component.

Package p = new Package();
MainPipe dataFlow = ((TaskHost)p.Executables.Add("SSIS.Pipeline.2")).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("SSIS.Pipeline.2"), TaskHost).InnerObject, MainPipe) 
Dim md As IDTSComponentMetaData100 = dataFlow.ComponentMetaDataCollection.New 
md.ComponentClassID = "DTSAdapter.OleDbSource" 
Dim wrp As CManagedComponentWrapper = md.Instantiate 
wrp.ProvideComponentProperties