CManagedComponentWrapper インターフェイス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
public interface class CManagedComponentWrapper : Microsoft::SqlServer::Dts::Pipeline::Wrapper::Sql2012::IDTSDesigntimeComponent100
[System.Runtime.InteropServices.CoClass(typeof(Microsoft.SqlServer.Dts.Pipeline.Wrapper.Sql2012.CManagedComponentWrapperClass))]
[System.Runtime.InteropServices.Guid("FF5DD3F1-99C1-4FFB-B097-1B1B2B9E9B2D")]
public interface CManagedComponentWrapper : Microsoft.SqlServer.Dts.Pipeline.Wrapper.Sql2012.IDTSDesigntimeComponent100
[<System.Runtime.InteropServices.CoClass(typeof(Microsoft.SqlServer.Dts.Pipeline.Wrapper.Sql2012.CManagedComponentWrapperClass))>]
[<System.Runtime.InteropServices.Guid("FF5DD3F1-99C1-4FFB-B097-1B1B2B9E9B2D")>]
type CManagedComponentWrapper = interface
interface IDTSDesigntimeComponent100
Public Interface CManagedComponentWrapper
Implements IDTSDesigntimeComponent100
- 派生
- 属性
- 実装
例
以下のコードサンプルは、コンポーネントのデザイン時インスタンスを使ってカスタムプロパティを設定する方法を示しています。 この例では、コンポーネントメタデータのCustomPropertyCollectionを使って直接プロパティを設定することは可能ですが、コンポーネントがプロパティの変更を監視・応答する能力をバイパスします。
IDTSComponentMetaData100 cmp = dataflowTask.ComponentMetaDataCollection.New();
cmp.ComponentClassID = "DTSAdapter.OleDbSource";
CManagedComponentWrapper dtSource = cmp.Instantiate();
dtSource.SetComponentProperty("SqlCommand","select * from Production.Products");
Dim cmp As IDTSComponentMetaData100 = dataflowTask.ComponentMetaDataCollection.New
cmp.ComponentClassID = "DTSAdapter.OleDbSource"
Dim dtSource As CManagedComponentWrapper = cmp.Instantiate
dtSource.SetComponentProperty("SqlCommand", "select * from Production.Products")
注釈
CManagedComponentWrapperは、データフローコンポーネントの設計時修正に使用されるIDTSDesigntimeComponent100のインターフェースを表します。 CManagedComponentWrapperは、設計時にデータフローコンポーネントのプロパティや列コレクションを設定するために使用されます。 コンポーネントのメタデータは直接変更可能ですが、これは避けるべきです。なぜなら、それはコンポーネントがメタデータの変更を検証する能力をバイパスしてしまうからです。 CManagedComponentWrapperのインスタンスは、コンポーネントのIDTSComponentMetaData100インターフェースのInstantiateメソッドを呼び出して作成されます。