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
- 屬性
- 實作
範例
以下程式碼範例將元件加入資料流程任務,並透過呼叫 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 介面定義,並用於修改屬性與集合元件。 當呼叫元件的 IDTSComponentMetaData100 介面的 Instantiate 方法時,會回傳 CManagedComponentWrapper 介面。 此介面可投射為 CManagedComponentWrapperClass 的實例,但這樣做並無優勢。 因此,通常不會使用這個類別。
建構函式
| 名稱 | Description |
|---|---|
| CManagedComponentWrapperClass() | |
屬性
| 名稱 | Description |
|---|---|
| BufferManager | |
| ComponentMetaData | |
| EventInfos | |
| LogEntryInfos | |
| ReferenceTracker | |
| RequiredProductLevel | |
| VariableDispenser | |
方法
適用於
執行緒安全性
任何公開的靜態(在 Visual Basic 中共享)成員皆為執行緒安全。 任何實例成員都不保證具有執行緒安全性。