CManagedComponentWrapper Antarmuka

Definisi

public interface class CManagedComponentWrapper : Microsoft::SqlServer::Dts::Pipeline::Wrapper::Sql2014::IDTSDesigntimeComponent100
[System.Runtime.InteropServices.CoClass(typeof(Microsoft.SqlServer.Dts.Pipeline.Wrapper.Sql2014.CManagedComponentWrapperClass))]
[System.Runtime.InteropServices.Guid("0058874E-E037-4BA9-920C-349773B5351A")]
public interface CManagedComponentWrapper : Microsoft.SqlServer.Dts.Pipeline.Wrapper.Sql2014.IDTSDesigntimeComponent100
[<System.Runtime.InteropServices.CoClass(typeof(Microsoft.SqlServer.Dts.Pipeline.Wrapper.Sql2014.CManagedComponentWrapperClass))>]
[<System.Runtime.InteropServices.Guid("0058874E-E037-4BA9-920C-349773B5351A")>]
type CManagedComponentWrapper = interface
    interface IDTSDesigntimeComponent100
Public Interface CManagedComponentWrapper
Implements IDTSDesigntimeComponent100
Turunan
Atribut
Penerapan

Contoh

Contoh kode berikut menunjukkan cara menambahkan komponen secara terprogram ke tugas aliran data dan membuat instans antarmuka waktu desain.

using System;  
using Microsoft.SqlServer.Dts.Runtime;  
using Microsoft.SqlServer.Dts.Pipeline.Wrapper;  

namespace Microsoft.Samples.SqlServer.Dts  
{  
    class CreateComponent  
    {  
         [STAThread]  
        static void Main(string[] args)  
        {  
            // Create the package.  
            Package p = new Package();  

            // Add the data flow task to the package.  
            MainPipe dataFlowTask = ((TaskHost)p.Executables.Add("DTS.Pipeline.1")).InnerObject as MainPipe;  

            if (dataFlowTask != null)  
            {  
                // Add a component to the data flow task.  
                IDTSComponentMetaData100 metaData = dataFlowTask.ComponentMetaDataCollection.New();  

                // Set the class id of the component.  
                metaData.ComponentClassID = "";  

                // Create an instance of the component.  
                CManagedComponentWrapper wrapper = metaData.Instantiate();  

                // Initialize the component by calling ProvideComponentProperties.  
                wrapper.ProvideComponentProperties();  
            }  
        }  
    }  
}  
See Also  
Microsoft.SqlServer.Dts.Pipeline.Wrapper Namespace  
Return   

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 antarmuka komponen IDTSComponentMetaData100 .

Metode dan properti yang ditentukan oleh antarmuka terlihat pada jenis CManagedComponentWrapperClass dan IDTSDesigntimeComponent100.

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