IDTSDesigntimeComponent100 インターフェイス

定義

C++およびCOMで書かれたデータフローコンポーネントの設計時メソッドを定義します。

public interface class IDTSDesigntimeComponent100
[System.Runtime.InteropServices.Guid("B7EBC995-699A-4067-A34C-40FAF745C987")]
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FDispatchable | System.Runtime.InteropServices.TypeLibTypeFlags.FDual)]
public interface IDTSDesigntimeComponent100
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FDispatchable | System.Runtime.InteropServices.TypeLibTypeFlags.FDual)]
[System.Runtime.InteropServices.Guid("E1ACC72B-14CE-4A91-B45F-E87773C1ABB5")]
public interface IDTSDesigntimeComponent100
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FDispatchable | System.Runtime.InteropServices.TypeLibTypeFlags.FDual)]
[System.Runtime.InteropServices.Guid("1C0F2743-58D4-4663-9BC0-06B4D19B51A7")]
public interface IDTSDesigntimeComponent100
[<System.Runtime.InteropServices.Guid("B7EBC995-699A-4067-A34C-40FAF745C987")>]
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FDispatchable | System.Runtime.InteropServices.TypeLibTypeFlags.FDual)>]
type IDTSDesigntimeComponent100 = interface
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FDispatchable | System.Runtime.InteropServices.TypeLibTypeFlags.FDual)>]
[<System.Runtime.InteropServices.Guid("E1ACC72B-14CE-4A91-B45F-E87773C1ABB5")>]
type IDTSDesigntimeComponent100 = interface
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FDispatchable | System.Runtime.InteropServices.TypeLibTypeFlags.FDual)>]
[<System.Runtime.InteropServices.Guid("1C0F2743-58D4-4663-9BC0-06B4D19B51A7")>]
type IDTSDesigntimeComponent100 = interface
Public Interface IDTSDesigntimeComponent100
派生
属性

以下のコード例は、コンポーネントの設計時インスタンスへのアクセス方法を示しています。

Package p = new Package();  
MainPipe dataFlow = ((TaskHost)p.Executables.Add("DTS.Pipeline")).InnerObject as MainPipe;  

IDTSComponentMetaData100 md = dataFlow.ComponentMetaDataCollection.New();  
md.ComponentClassID = "DTSAdapter.OleDbSource";  
CManagedComponentWrapper wrp = md.Instantiate();  
wrp.ProvideComponentProperties();  
Dim p As Package = New Package   
Dim dataFlow As MainPipe = CType(CType(p.Executables.Add("DTS.Pipeline"), TaskHost).InnerObject, MainPipe)   
Dim md As IDTSComponentMetaData100 = dataFlow.ComponentMetaDataCollection.New   
md.ComponentClassID = "DTSAdapter.OleDbSource"   
Dim wrp As CManagedComponentWrapper = md.Instantiate   
wrp.ProvideComponentProperties  

注釈

このインターフェースは、データフローコンポーネントによって実装される2つのインターフェースのうちの1つです。 IDTSRuntimeComponent100 がもう一つの問題です。 このインターフェースはコンポーネントの設計時インターフェースを定義し、 ComponentMetaData のコンポーネントプロパティやコレクションが変更された際に呼び出すメソッドを含みます。 マネージドコンポーネント開発者はこのインターフェースを明示的に実装せず、代わりに PipelineComponent ベースクラスを使用します。これは両方のインターフェースのメソッドを実装します。

データフロータスクで既存のコンポーネントを追加または修正する際は、コンポーネントの設計時インスタンスを直接コンポーネントメタデータにアクセスするのではなく使用すべきです。 ComponentMetaDataを直接変更することは、コンポーネントがメタデータの変更を検証・拒否する能力を直接バイパスするため、避けるべきです。 マネージドコード開発者はコンポーネントのデザイン時インスタンスにアクセスし、 IDTSDesigntimeComponent100 インターフェースのメソッドを CManagedComponentWrapperを通じて利用します。

メソッド

名前 説明
AcquireConnections(Object)

接続マネージャーへの接続を確立します。

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)

IDTSInput100IDTSInputCollection100 オブジェクトを追加します。

InsertOutput(DTSInsertPlacement, Int32)

新しい IDTSOutput100 オブジェクトを追加します。

InsertOutputColumnAt(Int32, Int32, String, String)

新しい IDTSOutputColumn100 オブジェクトを作成し、 IDTSOutputColumnCollection100に挿入します。

MapInputColumn(Int32, Int32, Int32)

入力列と対応する外部メタデータ列との関係を確立します。

MapOutputColumn(Int32, Int32, Int32, Boolean)

出力カラムと対応する外部メタデータカラムとの関係を確立します。

OnDeletingInputColumn(Int32, Int32)

IDTSInputColumnCollection100からIDTSInputColumn100オブジェクトを削除する際に呼び出します。

OnInputPathAttached(Int32)

IDTSInput100オブジェクトがIDTSPath100インターフェースを介して他のコンポーネントに接続されたときに呼び出されます。

OnInputPathDetached(Int32)

指定されたIDTSInput100オブジェクトを含むIDTSPath100オブジェクトが削除されたときに呼び出されます。

OnOutputPathAttached(Int32)

コンポーネントの IDTSOutput100 オブジェクトが下流コンポーネントに付加されたときに呼び出されます。

ProvideComponentProperties()

コンポーネントが初めてデータフロータスクに追加された際に、そのコンポーネントの ComponentMetaData を初期化します。

ReinitializeMetaData()

設計時検証中に特定され、コンポーネントが VS_NEEDSNEWMETADATAを返す原因となったエラーを修正します。

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

コンポーネントが正しく設定されていることを確認します。

適用対象