CManagedComponentWrapperClass 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
public ref class CManagedComponentWrapperClass : Microsoft::SqlServer::Dts::Pipeline::Wrapper::Sql2012::CManagedComponentWrapper, Microsoft::SqlServer::Dts::Pipeline::Wrapper::Sql2012::IDTSRuntimeComponent100
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.Guid("874F7595-FB5F-40FF-96AF-FBFF8250E3EF")]
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FAggregatable | System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)]
public class CManagedComponentWrapperClass : Microsoft.SqlServer.Dts.Pipeline.Wrapper.Sql2012.CManagedComponentWrapper, Microsoft.SqlServer.Dts.Pipeline.Wrapper.Sql2012.IDTSRuntimeComponent100
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Runtime.InteropServices.Guid("874F7595-FB5F-40FF-96AF-FBFF8250E3EF")>]
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FAggregatable | System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)>]
type CManagedComponentWrapperClass = class
interface IDTSDesigntimeComponent100
interface CManagedComponentWrapper
interface IDTSRuntimeComponent100
Public Class CManagedComponentWrapperClass
Implements CManagedComponentWrapper, IDTSRuntimeComponent100
- 继承
-
CManagedComponentWrapperClass
- 属性
- 实现
示例
以下代码示例将组件添加到数据流任务中,并通过调用实例化方法检索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接口定义,用于修改属性和集合组件。 当调用组件的IDTSComponentMetaData100接口的实例化方法时,返回CManagedComponentWrapper接口。 该接口可以投射为CManagedComponentWrapperClass的实例,但这样做没有优势。 因此,通常不使用该类。
构造函数
| 名称 | 说明 |
|---|---|
| CManagedComponentWrapperClass() | |
属性
| 名称 | 说明 |
|---|---|
| BufferManager | |
| ComponentMetaData | |
| EventInfos | |
| LogEntryInfos | |
| ReferenceTracker | |
| RequiredProductLevel | |
| VariableDispenser | |
方法
适用于
线程安全性
任何此类公共静态(共享于Visual Basic)成员均为线程安全。 不能保证任何实例成员是线程安全的。