Bagikan melalui


CManagedComponentWrapper Antarmuka

Definisi

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
Turunan
Atribut
Penerapan

Contoh

Sampel kode berikut menunjukkan bagaimana instans waktu desain komponen digunakan untuk mengatur properti kustom komponen. Dalam contoh ini, CustomPropertyCollection dari metadata komponen dapat digunakan untuk secara langsung mengatur properti, tetapi akan melewati kemampuan komponen untuk memantau dan merespons perubahan pada properti.

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")  

Keterangan

CManagedComponentWrapper mewakili antarmuka IDTSDesigntimeComponent100 yang digunakan dalam modifikasi waktu desain komponen aliran data. CManagedComponentWrapper digunakan untuk mengonfigurasi properti dan kumpulan kolom komponen aliran data selama waktu desain. Meskipun metadata komponen dapat dimodifikasi secara langsung, ini harus dihindari karena melakukannya melewati kemampuan komponen untuk memvalidasi modifikasi pada metadatanya. Instans CManagedComponentWrapper dibuat dengan memanggil metode Instantiate dari antarmuka IDTSComponentMetaData100 komponen.

Metode

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

Berlaku untuk