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 类型上可见。

方法

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)

适用于