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 方法來建立。

方法

名稱 Description
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)

適用於