次の方法で共有


CManagedComponentWrapper インターフェイス

定義

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 型の両方で表示されます。

メソッド

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

適用対象