CManagedComponentWrapper 介面

定義

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
衍生
屬性
實作

範例

以下程式碼範例示範如何程式化地將元件加入資料流程任務,並建立設計時介面的實例。

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   

備註

CManagedComponentWrapper 代表 IDTSDesigntimeComponent100 的介面,用於資料流程元件的設計時修改。 CManagedComponentWrapper 用於在設計時配置資料流程元件的屬性與欄位集合。 雖然元件的元資料可以直接被修改,但應避免,因為這會繞過元件驗證元資料修改的能力。 CManagedComponentWrapper 的實例是透過呼叫元件 IDTSComponentMetaData100 介面的 Instantiate 方法來建立。

介面定義的方法與屬性在 CManagedComponentWrapperClass 與 IDTSDesigntimeComponent100 類型中皆可見。

方法

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

適用於