CManagedComponentWrapper インターフェイス

定義

コンポーネントのプロパティや列コレクションの設定を行います。

public interface class CManagedComponentWrapper : Microsoft::SqlServer::Dts::Pipeline::Wrapper::IDTSDesigntimeComponent100
[System.Runtime.InteropServices.CoClass(typeof(Microsoft.SqlServer.Dts.Pipeline.Wrapper.CManagedComponentWrapperClass))]
[System.Runtime.InteropServices.Guid("B7EBC995-699A-4067-A34C-40FAF745C987")]
public interface CManagedComponentWrapper : Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSDesigntimeComponent100
[System.Runtime.InteropServices.CoClass(typeof(Microsoft.SqlServer.Dts.Pipeline.Wrapper.CManagedComponentWrapperClass))]
[System.Runtime.InteropServices.Guid("E1ACC72B-14CE-4A91-B45F-E87773C1ABB5")]
public interface CManagedComponentWrapper : Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSDesigntimeComponent100
[System.Runtime.InteropServices.CoClass(typeof(Microsoft.SqlServer.Dts.Pipeline.Wrapper.CManagedComponentWrapperClass))]
[System.Runtime.InteropServices.Guid("1C0F2743-58D4-4663-9BC0-06B4D19B51A7")]
public interface CManagedComponentWrapper : Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSDesigntimeComponent100
[<System.Runtime.InteropServices.CoClass(typeof(Microsoft.SqlServer.Dts.Pipeline.Wrapper.CManagedComponentWrapperClass))>]
[<System.Runtime.InteropServices.Guid("B7EBC995-699A-4067-A34C-40FAF745C987")>]
type CManagedComponentWrapper = interface
    interface IDTSDesigntimeComponent100
[<System.Runtime.InteropServices.CoClass(typeof(Microsoft.SqlServer.Dts.Pipeline.Wrapper.CManagedComponentWrapperClass))>]
[<System.Runtime.InteropServices.Guid("E1ACC72B-14CE-4A91-B45F-E87773C1ABB5")>]
type CManagedComponentWrapper = interface
    interface IDTSDesigntimeComponent100
[<System.Runtime.InteropServices.CoClass(typeof(Microsoft.SqlServer.Dts.Pipeline.Wrapper.CManagedComponentWrapperClass))>]
[<System.Runtime.InteropServices.Guid("1C0F2743-58D4-4663-9BC0-06B4D19B51A7")>]
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();  
            }  
        }  
    }  
}  

注釈

CManagedComponentWrapperは、データフローコンポーネントの設計時修正に使用される、IDTSDesigntimeComponent100のインターフェースを表します。 CManagedComponentWrapper 設計時にデータフローコンポーネントのプロパティや列コレクションを設定するために使用されます。 コンポーネントのメタデータは直接変更可能ですが、これは避けるべきです。なぜなら、それはコンポーネントがメタデータの変更を検証する能力をバイパスしてしまうからです。 CManagedComponentWrapperのインスタンスは、コンポーネントのIDTSComponentMetaData100インターフェースのInstantiateメソッドを呼び出して作成されます。

インターフェースで定義されたメソッドやプロパティは、 CManagedComponentWrapperClass 型と IDTSDesigntimeComponent100 型の両方で確認できます。

メソッド

名前 説明
AcquireConnections(Object)

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

(継承元 IDTSDesigntimeComponent100)
DeleteExternalMetadataColumn(Int32, Int32)

指定されたインデックスの外部メタデータ列を外部メタデータ列のコレクションから削除します。

(継承元 IDTSDesigntimeComponent100)
DeleteInput(Int32)

IDTSInputCollection100コレクションからIDTSInput100オブジェクトを削除します。

(継承元 IDTSDesigntimeComponent100)
DeleteOutput(Int32)

IDTSOutputCollection100コレクションからIDTSOutput100オブジェクトを削除します。

(継承元 IDTSDesigntimeComponent100)
DeleteOutputColumn(Int32, Int32)

IDTSOutputColumnCollection100コレクションからIDTSOutputColumn100オブジェクトを削除します。

(継承元 IDTSDesigntimeComponent100)
DescribeRedirectedErrorCode(Int32)

指定されたエラーコードの記述を返します。

(継承元 IDTSDesigntimeComponent100)
GetEnumerationCollection(String)

コンポーネントの IDTSFriendlyEnumCollection100 を返します。

(継承元 IDTSDesigntimeComponent100)
InsertExternalMetadataColumnAt(Int32, Int32, String, String)

指定されたインデックスの外部メタデータ列の集合に新しい外部メタデータ列を挿入します。

(継承元 IDTSDesigntimeComponent100)
InsertInput(DTSInsertPlacement, Int32)

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

(継承元 IDTSDesigntimeComponent100)
InsertOutput(DTSInsertPlacement, Int32)

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

(継承元 IDTSDesigntimeComponent100)
InsertOutputColumnAt(Int32, Int32, String, String)

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

(継承元 IDTSDesigntimeComponent100)
MapInputColumn(Int32, Int32, Int32)

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

(継承元 IDTSDesigntimeComponent100)
MapOutputColumn(Int32, Int32, Int32, Boolean)

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

(継承元 IDTSDesigntimeComponent100)
OnDeletingInputColumn(Int32, Int32)

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

(継承元 IDTSDesigntimeComponent100)
OnInputPathAttached(Int32)

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

(継承元 IDTSDesigntimeComponent100)
OnInputPathDetached(Int32)

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

(継承元 IDTSDesigntimeComponent100)
OnOutputPathAttached(Int32)

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

(継承元 IDTSDesigntimeComponent100)
ProvideComponentProperties()

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

(継承元 IDTSDesigntimeComponent100)
ReinitializeMetaData()

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

(継承元 IDTSDesigntimeComponent100)
ReleaseConnections()

設計時または実行時に AcquireConnections(Object) 中に確立された接続を解放します。

(継承元 IDTSDesigntimeComponent100)
SetComponentProperty(String, Object)

コンポーネントの IDTSCustomProperty100 に値を割り当てます。

(継承元 IDTSDesigntimeComponent100)
SetExternalMetadataColumnDataTypeProperties(Int32, Int32, DataType, Int32, Int32, Int32, Int32)

指定された外部メタデータ列のデータ型プロパティを設定します。

(継承元 IDTSDesigntimeComponent100)
SetExternalMetadataColumnProperty(Int32, Int32, String, Object)

外部メタデータ列の個別プロパティを設定します。

(継承元 IDTSDesigntimeComponent100)
SetInputColumnProperty(Int32, Int32, String, Object)

IDTSInputColumn100オブジェクトのIDTSCustomProperty100に値を割り当てます。

(継承元 IDTSDesigntimeComponent100)
SetInputProperty(Int32, String, Object)

IDTSInput100オブジェクトのIDTSCustomProperty100に値を割り当てます。

(継承元 IDTSDesigntimeComponent100)
SetOutputColumnDataTypeProperties(Int32, Int32, DataType, Int32, Int32, Int32, Int32)

IDTSOutputColumn100オブジェクトのデータ型プロパティを設定します。

(継承元 IDTSDesigntimeComponent100)
SetOutputColumnProperty(Int32, Int32, String, Object)

IDTSOutputColumn100オブジェクトのIDTSCustomProperty100値を設定します。

(継承元 IDTSDesigntimeComponent100)
SetOutputProperty(Int32, String, Object)

IDTSOutput100オブジェクトのIDTSCustomProperty100値を設定します。

(継承元 IDTSDesigntimeComponent100)
SetUsageType(Int32, IDTSVirtualInput100, Int32, DTSUsageType)

コンポーネントのIDTSInputColumnCollection100IDTSInputColumn100オブジェクトを作成し、列のUsageTypeプロパティを設定します。

(継承元 IDTSDesigntimeComponent100)
Validate()

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

(継承元 IDTSDesigntimeComponent100)

適用対象