次の方法で共有


IDTSDesigntimeComponent100 インターフェイス

定義

public interface class IDTSDesigntimeComponent100
[System.Runtime.InteropServices.Guid("0058874E-E037-4BA9-920C-349773B5351A")]
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FDispatchable | System.Runtime.InteropServices.TypeLibTypeFlags.FDual)]
public interface IDTSDesigntimeComponent100
[<System.Runtime.InteropServices.Guid("0058874E-E037-4BA9-920C-349773B5351A")>]
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FDispatchable | System.Runtime.InteropServices.TypeLibTypeFlags.FDual)>]
type IDTSDesigntimeComponent100 = interface
Public Interface IDTSDesigntimeComponent100
派生
属性

次のコード例では、コンポーネントのデザイン時インスタンスにアクセスしています。

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

注釈

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

プログラムでデータ フロー タスクの既存のコンポーネントを追加または変更する場合、コンポーネント メタデータに直接アクセスするのではなく、コンポーネントのデザイン時インスタンスを使用する必要があります。 ComponentMetaData を直接変更すると、コンポーネントがメタデータの変更を検証および拒否する機能がバイパスされてしまうため、この方法は避けてください。 マネージ コード開発者は、コンポーネントのデザイン時インスタンスにアクセスし、 を介して IDTSDesigntimeComponent100 インターフェイスのメソッドを CManagedComponentWrapper使用します。

メソッド

AcquireConnections(Object)
DeleteExternalMetadataColumn(Int32, Int32)
DeleteInput(Int32)
DeleteOutput(Int32)
DeleteOutputColumn(Int32, Int32)
DescribeRedirectedErrorCode(Int32)
GetEnumerationCollection(String)
InsertExternalMetadataColumnAt(Int32, Int32, String, String)
InsertInput(DTSInsertPlacement, Int32)
InsertOutput(DTSInsertPlacement, Int32)
InsertOutputColumnAt(Int32, Int32, String, String)
MapInputColumn(Int32, Int32, Int32)
MapOutputColumn(Int32, Int32, Int32, Boolean)
OnDeletingInputColumn(Int32, Int32)
OnInputPathAttached(Int32)
OnInputPathDetached(Int32)
OnOutputPathAttached(Int32)
ProvideComponentProperties()
ReinitializeMetaData()
ReleaseConnections()
SetComponentProperty(String, Object)
SetExternalMetadataColumnDataTypeProperties(Int32, Int32, DataType, Int32, Int32, Int32, Int32)
SetExternalMetadataColumnProperty(Int32, Int32, String, Object)
SetInputColumnProperty(Int32, Int32, String, Object)
SetInputProperty(Int32, String, Object)
SetOutputColumnDataTypeProperties(Int32, Int32, DataType, Int32, Int32, Int32, Int32)
SetOutputColumnProperty(Int32, Int32, String, Object)
SetOutputProperty(Int32, String, Object)
SetUsageType(Int32, IDTSVirtualInput100, Int32, DTSUsageType)
Validate()

適用対象