CManagedComponentWrapper インターフェイス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
public interface class CManagedComponentWrapper : Microsoft::SqlServer::Dts::Pipeline::Wrapper::Sql2014::IDTSDesigntimeComponent100
[System.Runtime.InteropServices.CoClass(typeof(Microsoft.SqlServer.Dts.Pipeline.Wrapper.Sql2014.CManagedComponentWrapperClass))]
[System.Runtime.InteropServices.Guid("0058874E-E037-4BA9-920C-349773B5351A")]
public interface CManagedComponentWrapper : Microsoft.SqlServer.Dts.Pipeline.Wrapper.Sql2014.IDTSDesigntimeComponent100
[<System.Runtime.InteropServices.CoClass(typeof(Microsoft.SqlServer.Dts.Pipeline.Wrapper.Sql2014.CManagedComponentWrapperClass))>]
[<System.Runtime.InteropServices.Guid("0058874E-E037-4BA9-920C-349773B5351A")>]
type CManagedComponentWrapper = interface
interface IDTSDesigntimeComponent100
Public Interface CManagedComponentWrapper
Implements IDTSDesigntimeComponent100
- 派生
- 属性
- 実装
例
以下のコード例は、データフロータスクにコンポーネントをプログラム的に追加し、設計時インターフェースのインスタンスを作成する方法を示しています。
using System;
using Microsoft.SqlServer.Dts.Runtime;
using Microsoft.SqlServer.Dts.Pipeline.Wrapper;
namespace Microsoft.Samples.SqlServer.Dts
{
class CreateComponent
{
[STAThread]
static void Main(string[] args)
{
// Create the package.
Package p = new Package();
// Add the data flow task to the package.
MainPipe dataFlowTask = ((TaskHost)p.Executables.Add("DTS.Pipeline.1")).InnerObject as MainPipe;
if (dataFlowTask != null)
{
// Add a component to the data flow task.
IDTSComponentMetaData100 metaData = dataFlowTask.ComponentMetaDataCollection.New();
// Set the class id of the component.
metaData.ComponentClassID = "";
// Create an instance of the component.
CManagedComponentWrapper wrapper = metaData.Instantiate();
// Initialize the component by calling ProvideComponentProperties.
wrapper.ProvideComponentProperties();
}
}
}
}
See Also
Microsoft.SqlServer.Dts.Pipeline.Wrapper Namespace
Return
注釈
CManagedComponentWrapperは、データフローコンポーネントの設計時修正に使用されるIDTSDesigntimeComponent100のインターフェースを表します。 CManagedComponentWrapperは、設計時にデータフローコンポーネントのプロパティや列コレクションを設定するために使用されます。 コンポーネントのメタデータは直接変更可能ですが、これは避けるべきです。なぜなら、それはコンポーネントがメタデータの変更を検証する能力をバイパスしてしまうからです。 CManagedComponentWrapperのインスタンスは、コンポーネントの IDTSComponentMetaData100 インターフェースのInstantiateメソッドを呼び出して作成されます。
インターフェースで定義されたメソッドとプロパティは、CManagedComponentWrapperClass と IDTSDesigntimeComponent100 の両方の型で確認できます。