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 インターフェースによって定義され、プロパティおよびコレクションコンポーネントの修正に使用されます。 コンポーネントのIDTSComponentMetaData100インターフェースのInstantiateメソッドが呼び出されると、CManagedComponentWrapperインターフェースが返されます。 このインターフェースは 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)

IDTSInputCollection100コレクションからIDTSInput100オブジェクトを削除します。

DeleteOutput(Int32)

コンポーネントのIDTSOutputCollection100コレクションからIDTSOutput100オブジェクトを削除します。

DeleteOutputColumn(Int32, Int32)

コンポーネントのIDTSOutputColumnCollection100コレクションからIDTSOutputColumn100オブジェクトを削除します。

DescribeRedirectedErrorCode(Int32)

コンポーネントによって定義されたエラーコードの記述を返します。

GetEnumerationCollection(String)

コンポーネントの IDTSFriendlyEnumCollection100 を返します。

InsertExternalMetadataColumnAt(Int32, Int32, String, String)

指定されたインデックスの外部メタデータ列の集合に新しい外部メタデータ列を挿入します。

InsertInput(DTSInsertPlacement, Int32)

コンポーネントのIDTSInputCollection100IDTSInput100オブジェクトを追加します。

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

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

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)

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

SetInputProperty(Int32, String, Object)

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

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

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

SetOutputColumnProperty(Int32, Int32, String, Object)

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

SetOutputProperty(Int32, String, Object)

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

SetUsageType(Int32, IDTSVirtualInput100, Int32, DTSUsageType)

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

Validate()

コンポーネントが正しく設定されていて実行準備が整っているかを確認します。

適用対象