语言

CManagedComponentWrapperClass 类

定义

表示数据流组件的设计时实例。

public ref class CManagedComponentWrapperClass : Microsoft::SqlServer::Dts::Pipeline::Wrapper::CManagedComponentWrapper, Microsoft::SqlServer::Dts::Pipeline::Wrapper::IDTSRuntimeComponent100
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.Guid("4F885D04-B578-47B7-94A0-DE9C7DA25EE2")]
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FAggregatable | System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)]
public class CManagedComponentWrapperClass : Microsoft.SqlServer.Dts.Pipeline.Wrapper.CManagedComponentWrapper, Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSRuntimeComponent100
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FAggregatable | System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)]
[System.Runtime.InteropServices.Guid("8DC69D45-2AD5-40C6-AAEC-25722F92D6FC")]
public class CManagedComponentWrapperClass : Microsoft.SqlServer.Dts.Pipeline.Wrapper.CManagedComponentWrapper, Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSRuntimeComponent100
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FAggregatable | System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)]
[System.Runtime.InteropServices.Guid("7CDF593F-DE06-4ABD-B356-7976EF7AC8E0")]
public class CManagedComponentWrapperClass : Microsoft.SqlServer.Dts.Pipeline.Wrapper.CManagedComponentWrapper, Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSRuntimeComponent100
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Runtime.InteropServices.Guid("4F885D04-B578-47B7-94A0-DE9C7DA25EE2")>]
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FAggregatable | System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)>]
type CManagedComponentWrapperClass = class
    interface IDTSDesigntimeComponent100
    interface CManagedComponentWrapper
    interface IDTSRuntimeComponent100
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FAggregatable | System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)>]
[<System.Runtime.InteropServices.Guid("8DC69D45-2AD5-40C6-AAEC-25722F92D6FC")>]
type CManagedComponentWrapperClass = class
    interface IDTSDesigntimeComponent100
    interface CManagedComponentWrapper
    interface IDTSRuntimeComponent100
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FAggregatable | System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)>]
[<System.Runtime.InteropServices.Guid("7CDF593F-DE06-4ABD-B356-7976EF7AC8E0")>]
type CManagedComponentWrapperClass = class
    interface IDTSDesigntimeComponent100
    interface CManagedComponentWrapper
    interface IDTSRuntimeComponent100
Public Class CManagedComponentWrapperClass
Implements CManagedComponentWrapper, IDTSRuntimeComponent100
继承
CManagedComponentWrapperClass
属性
实现

示例

以下代码示例将为数据流任务添加组件,并通过调用该Instantiate方法检索接口实例CManagedComponentWrapper

Package p = new Package();  
MainPipe mp = ((TaskHost)p.Executables.Add("DTS.Pipeline")).InnerObject as MainPipe;  

IDTSComponentMetaData100 md = mp.ComponentMetaDataCollection.New();  
md.ComponentClassID = "DTSAdapter.OleDbSource";  

CManagedComponentWrapper wrp = md.Instantiate();  

注解

表示 CManagedComponentWrapperClass 数据流组件的设计时实例,是用于在数据流任务中程序修改组件时使用的对象。 该类的方法由 IDTSDesigntimeComponent100 接口定义,并用于修改属性和集合组件。 CManagedComponentWrapperInstantiate调用组件接口的方法IDTSComponentMetaData100时,返回该接口。 该接口可以投射到某个 CManagedComponentWrapperClass 实例,但这样做没有优势,因此通常不使用该类。

构造函数

名称 说明
CManagedComponentWrapperClass()

实例化该 CManagedComponentWrapperClass 对象的实例。

属性

名称 说明
BufferManager

设置 IDTSBufferManager100 组件的对象。

ComponentMetaData

为组件设置 IDTSComponentMetaData100 对象

EventInfos

设置 IDTSEventInfos100 与组件关联的集合。

LogEntryInfos

把对象传 IDTSLogEntryInfos100 到组件。

ReferenceTracker

设置 IDTSObjectReferenceTracker100 与组件关联的对象。

RequiredProductLevel

获得一个值,表示数据流组件需要哪个版本的 SQL Server。

VariableDispenser

设置 IDTSVariableDispenser100 与组件关联的对象。

方法

名称 说明
AcquireConnections(Object)

建立连接到连接管理器的连接。

Cleanup()

释放资源,并在组件运行后清理。

DeleteExternalMetadataColumn(Int32, Int32)

从外部元数据列集合中删除指定索引处的外部元数据列。

DeleteInput(Int32)

从集合中删除一个 IDTSInput100 对象 IDTSInputCollection100

DeleteOutput(Int32)

从组件集合中删除一个 IDTSOutput100 对象 IDTSOutputCollection100

DeleteOutputColumn(Int32, Int32)

从组件集合中删除一个 IDTSOutputColumn100 对象 IDTSOutputColumnCollection100

DescribeRedirectedErrorCode(Int32)

返回组件定义的错误代码描述。

GetEnumerationCollection(String)

返回组件的 。IDTSFriendlyEnumCollection100

InsertExternalMetadataColumnAt(Int32, Int32, String, String)

在指定索引处向外部元数据列集合插入一个新的外部元数据列。

InsertInput(DTSInsertPlacement, Int32)

向组件的 添加一个 IDTSInput100 对象 IDTSInputCollection100

InsertOutput(DTSInsertPlacement, Int32)

向组件添加一个新 IDTSOutput100 对象。

InsertOutputColumnAt(Int32, Int32, String, String)

创建一个新 IDTSOutputColumn100 对象并将其插入 IDTSOutputColumnCollection100 组件的 。

MapInputColumn(Int32, Int32, Int32)

建立输入列与对应外部元数据列之间的关系。

MapOutputColumn(Int32, Int32, Int32, Boolean)

建立列与对应IDTSExternalMetadataColumn100列之间的IDTSOutputColumn100关系。

OnDeletingInputColumn(Int32, Int32)

当 IDTSInputColunn100 对象从组件的 IDTSInputColumnCollection100 中被删除时调用。

OnInputPathAttached(Int32)

IDTSInput100 组件的对象被连接到下游组件时调用。

OnInputPathDetached(Int32)

当组件对象与上游组件断开连接时 IDTSInput100 调用。

OnOutputPathAttached(Int32)

IDTSOutput100 组件的对象被连接到下游组件时调用。

PerformUpgrade(Int32)

将组件的元数据升级为本地计算机上安装的组件版本。

PostExecute()

组件完成数据行处理后必须完成的任务。

PreExecute()

那些必须在方法运行后 PrepareForExecute() 、组件开始处理数据行之前完成的任务?

PrepareForExecute()

这些任务既在组件开始处理数据行之前,也在方法运行前 PreExecute() 完成?

PrimeOutput(Int32, Int32, IDTSBuffer100)

在数据流中向输出缓冲区添加行。

ProcessInput(Int32, IDTSBuffer100)

处理来自上游组件的输入缓冲区中接收的数据行。

ProvideComponentProperties()

初始化或重置组件的 。IDTSComponentMetaData100

ReinitializeMetaData()

调用该组件以修复组件在方法Validate()中识别出的对象问题IDTSComponentMetaData100

ReleaseConnections()

释放分量在 期间 AcquireConnections(Object)建立的连接。

SetComponentProperty(String, Object)

为组件的 a IDTSCustomProperty100 赋予一个值。

SetExternalMetadataColumnDataTypeProperties(Int32, Int32, DataType, Int32, Int32, Int32, Int32)

设置指定外部元数据列的数据类型属性。

SetExternalMetadataColumnProperty(Int32, Int32, String, Object)

在外部元数据列上设置一个单独属性。

SetInputColumnProperty(Int32, Int32, String, Object)

为对象的值IDTSCustomProperty100IDTSInputColumn100赋予一个值。

SetInputProperty(Int32, String, Object)

为组件中对象的 赋予IDTSCustomProperty100IDTSInput100一个值。

SetOutputColumnDataTypeProperties(Int32, Int32, DataType, Int32, Int32, Int32, Int32)

设置对象的数据 IDTSOutputColumn100 类型属性。

SetOutputColumnProperty(Int32, Int32, String, Object)

为对象的值IDTSCustomProperty100IDTSOutputColumn100赋予一个值。

SetOutputProperty(Int32, String, Object)

调用此方法来设置组件对象的 IDTSOutput100IDTSCustomProperty100

SetUsageType(Int32, IDTSVirtualInput100, Int32, DTSUsageType)

在组件的 中IDTSInputColumnCollection100创建一个IDTSInputColumn100对象,并设置该列的 UsageType 属性。

Validate()

验证组件配置正确且准备执行。

适用于