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
属性
実装

次のコード例では、データ フロー タスクにコンポーネントを追加し、CManagedComponentWrapper メソッドを呼び出して Instantiate インターフェイスのインスタンスを取得しています。

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 オブジェクトを設定します。

メソッド

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)

IDTSOutputColumn100 列とそれに対応する IDTSExternalMetadataColumn100 列との間にリレーションシップを確立します。

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()

IDTSComponentMetaData100 メソッド中にコンポーネントで識別された Validate() オブジェクトの問題を、コンポーネントが修復できるようにするために呼び出されます。

ReleaseConnections()

AcquireConnections(Object) 中にコンポーネントによって確立された接続を解放します。

SetComponentProperty(String, Object)

コンポーネントの IDTSCustomProperty100 に値を割り当てます。

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

指定した外部メタデータ列のデータ型プロパティを設定します。

SetExternalMetadataColumnProperty(Int32, Int32, String, Object)

外部メタデータ列の個別のプロパティを設定します。

SetInputColumnProperty(Int32, Int32, String, Object)

IDTSCustomProperty100 オブジェクトの IDTSInputColumn100 に値を割り当てます。

SetInputProperty(Int32, String, Object)

コンポーネントの IDTSCustomProperty100 オブジェクトの IDTSInput100 に値を割り当てます。

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

IDTSOutputColumn100 オブジェクトのデータ型プロパティを設定します。

SetOutputColumnProperty(Int32, Int32, String, Object)

IDTSCustomProperty100 オブジェクトの IDTSOutputColumn100 に値を割り当てます。

SetOutputProperty(Int32, String, Object)

コンポーネントの IDTSCustomProperty100 オブジェクトの IDTSOutput100 を設定するには、このメソッドを呼び出します。

SetUsageType(Int32, IDTSVirtualInput100, Int32, DTSUsageType)

コンポーネントの IDTSInputColumn100 内に IDTSInputColumnCollection100 オブジェクトを作成し、列の UsageType プロパティを設定します。

Validate()

コンポーネントが正しく構成され、実行できる状態であることを確認します。

適用対象