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 メソッドを呼び出すことによって作成されます。