CManagedComponentWrapperClass 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示数据流组件的设计时实例。
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 接口定义,并用于修改属性和集合组件。 CManagedComponentWrapper当Instantiate调用组件接口的方法IDTSComponentMetaData100时,返回该接口。 该接口可以投射到某个 CManagedComponentWrapperClass 实例,但这样做没有优势,因此通常不使用该类。
构造函数
| 名称 | 说明 |
|---|---|
| CManagedComponentWrapperClass() |
实例化该 CManagedComponentWrapperClass 对象的实例。 |
属性
| 名称 | 说明 |
|---|---|
| BufferManager |
设置 IDTSBufferManager100 组件的对象。 |
| ComponentMetaData |
为组件设置 IDTSComponentMetaData100 对象 |
| EventInfos |
设置 IDTSEventInfos100 与组件关联的集合。 |
| LogEntryInfos |
把对象传 IDTSLogEntryInfos100 到组件。 |
| ReferenceTracker |
设置 IDTSObjectReferenceTracker100 与组件关联的对象。 |
| RequiredProductLevel |
获得一个值,表示数据流组件需要哪个版本的 SQL Server。 |
| VariableDispenser |
设置 IDTSVariableDispenser100 与组件关联的对象。 |