CManagedComponentWrapper 接口

定义

public interface class CManagedComponentWrapper : Microsoft::SqlServer::Dts::Pipeline::Wrapper::Sql2012::IDTSDesigntimeComponent100
[System.Runtime.InteropServices.CoClass(typeof(Microsoft.SqlServer.Dts.Pipeline.Wrapper.Sql2012.CManagedComponentWrapperClass))]
[System.Runtime.InteropServices.Guid("FF5DD3F1-99C1-4FFB-B097-1B1B2B9E9B2D")]
public interface CManagedComponentWrapper : Microsoft.SqlServer.Dts.Pipeline.Wrapper.Sql2012.IDTSDesigntimeComponent100
[<System.Runtime.InteropServices.CoClass(typeof(Microsoft.SqlServer.Dts.Pipeline.Wrapper.Sql2012.CManagedComponentWrapperClass))>]
[<System.Runtime.InteropServices.Guid("FF5DD3F1-99C1-4FFB-B097-1B1B2B9E9B2D")>]
type CManagedComponentWrapper = interface
    interface IDTSDesigntimeComponent100
Public Interface CManagedComponentWrapper
Implements IDTSDesigntimeComponent100
派生
属性
实现

示例

以下代码示例展示了组件的设计时实例如何用于设置组件的自定义属性。 在此示例中,组件元数据的 CustomPropertyCollection 可以直接设置属性,但会绕过组件监控和响应属性变更的能力。

IDTSComponentMetaData100 cmp = dataflowTask.ComponentMetaDataCollection.New();  
cmp.ComponentClassID = "DTSAdapter.OleDbSource";  
CManagedComponentWrapper dtSource = cmp.Instantiate();  
dtSource.SetComponentProperty("SqlCommand","select * from Production.Products");  
Dim cmp As IDTSComponentMetaData100 = dataflowTask.ComponentMetaDataCollection.New   
cmp.ComponentClassID = "DTSAdapter.OleDbSource"   
Dim dtSource As CManagedComponentWrapper = cmp.Instantiate   
dtSource.SetComponentProperty("SqlCommand", "select * from Production.Products")  

注解

CManagedComponentWrapper代表IDTSDesigntimeComponent100的接口,用于数据流组件的设计时修改。 CManagedComponentWrapper 用于在设计过程中配置数据流组件的属性和列集合。 虽然组件的元数据可以被直接修改,但应避免这样做,因为这样做会绕过组件验证元数据修改的能力。 CManagedComponentWrapper 实例是通过调用组件的 IDTSComponentMetaData100 接口的 Instantiate 方法创建的。

方法

名称 说明
AcquireConnections(Object) (继承自 IDTSDesigntimeComponent100)
DeleteExternalMetadataColumn(Int32, Int32) (继承自 IDTSDesigntimeComponent100)
DeleteInput(Int32) (继承自 IDTSDesigntimeComponent100)
DeleteOutput(Int32) (继承自 IDTSDesigntimeComponent100)
DeleteOutputColumn(Int32, Int32) (继承自 IDTSDesigntimeComponent100)
DescribeRedirectedErrorCode(Int32) (继承自 IDTSDesigntimeComponent100)
GetEnumerationCollection(String) (继承自 IDTSDesigntimeComponent100)
InsertExternalMetadataColumnAt(Int32, Int32, String, String) (继承自 IDTSDesigntimeComponent100)
InsertInput(DTSInsertPlacement, Int32) (继承自 IDTSDesigntimeComponent100)
InsertOutput(DTSInsertPlacement, Int32) (继承自 IDTSDesigntimeComponent100)
InsertOutputColumnAt(Int32, Int32, String, String) (继承自 IDTSDesigntimeComponent100)
MapInputColumn(Int32, Int32, Int32) (继承自 IDTSDesigntimeComponent100)
MapOutputColumn(Int32, Int32, Int32, Boolean) (继承自 IDTSDesigntimeComponent100)
OnDeletingInputColumn(Int32, Int32) (继承自 IDTSDesigntimeComponent100)
OnInputPathAttached(Int32) (继承自 IDTSDesigntimeComponent100)
OnInputPathDetached(Int32) (继承自 IDTSDesigntimeComponent100)
OnOutputPathAttached(Int32) (继承自 IDTSDesigntimeComponent100)
ProvideComponentProperties() (继承自 IDTSDesigntimeComponent100)
ReinitializeMetaData() (继承自 IDTSDesigntimeComponent100)
ReleaseConnections() (继承自 IDTSDesigntimeComponent100)
SetComponentProperty(String, Object) (继承自 IDTSDesigntimeComponent100)
SetExternalMetadataColumnDataTypeProperties(Int32, Int32, DataType, Int32, Int32, Int32, Int32) (继承自 IDTSDesigntimeComponent100)
SetExternalMetadataColumnProperty(Int32, Int32, String, Object) (继承自 IDTSDesigntimeComponent100)
SetInputColumnProperty(Int32, Int32, String, Object) (继承自 IDTSDesigntimeComponent100)
SetInputProperty(Int32, String, Object) (继承自 IDTSDesigntimeComponent100)
SetOutputColumnDataTypeProperties(Int32, Int32, DataType, Int32, Int32, Int32, Int32) (继承自 IDTSDesigntimeComponent100)
SetOutputColumnProperty(Int32, Int32, String, Object) (继承自 IDTSDesigntimeComponent100)
SetOutputProperty(Int32, String, Object) (继承自 IDTSDesigntimeComponent100)
SetUsageType(Int32, IDTSVirtualInput100, Int32, DTSUsageType) (继承自 IDTSDesigntimeComponent100)
Validate() (继承自 IDTSDesigntimeComponent100)

适用于