MainPipeClass.ComponentMetaDataCollection プロパティ

定義

public:
 virtual property Microsoft::SqlServer::Dts::Pipeline::Wrapper::Sql2012::IDTSComponentMetaDataCollection100 ^ ComponentMetaDataCollection { Microsoft::SqlServer::Dts::Pipeline::Wrapper::Sql2012::IDTSComponentMetaDataCollection100 ^ get(); };
[System.Runtime.InteropServices.DispId(12)]
public virtual Microsoft.SqlServer.Dts.Pipeline.Wrapper.Sql2012.IDTSComponentMetaDataCollection100 ComponentMetaDataCollection { [System.Runtime.InteropServices.DispId(12)] get; }
[<System.Runtime.InteropServices.DispId(12)>]
[<get: System.Runtime.InteropServices.DispId(12)>]
member this.ComponentMetaDataCollection : Microsoft.SqlServer.Dts.Pipeline.Wrapper.Sql2012.IDTSComponentMetaDataCollection100
Public Overridable ReadOnly Property ComponentMetaDataCollection As IDTSComponentMetaDataCollection100

プロパティ値

IDTSComponentMetaDataCollection100 コレクション。

実装

属性

以下のコード例は、コレクション内の新しいコンポーネントの追加と初期化方法を示しています。

Imports System   
Imports Microsoft.SqlServer.Dts.Runtime   
Imports Microsoft.SqlServer.Dts.Pipeline.Wrapper   
Namespace Microsoft.Samples.SqlServer.Dts   

 Public Class Class1   

   Public Shared Sub Main(ByVal args As String())   
     Dim p As Package = New Package   
     Dim mp As MainPipe = CType(CType(p.Executables.Add("DTS.Pipeline"), TaskHost).InnerObject, MainPipe)   
     Dim md As IDTSComponentMetaData100 = mp.ComponentMetaDataCollection.New   
     md.ComponentClassID = "DTSAdapter.OleDbSource"   
     Dim wrp As CManagedComponentWrapper = md.Instantiate   
     wrp.ProvideComponentProperties   
   End Sub   
 End Class   
End Namespace  
using System;  
using Microsoft.SqlServer.Dts.Runtime;  
using Microsoft.SqlServer.Dts.Pipeline.Wrapper;  

namespace Microsoft.Samples.SqlServer.Dts  
{  
    public class Class1  
    {  
        public static void Main( string []args )  
        {  
            Package p = new Package();  
            MainPipe mp = ((TaskHost)p.Executables.Add("DTS.Pipeline")).InnerObject as MainPipe;  
            IDTSComponentMetaData100 md = mp.ComponentMetaDataCollection.New();  
            md.ComponentClassID = "DTSAdapter.OleDbSource";  
            CManagedComponentWrapper wrp = md.Instantiate();  
            wrp.ProvideComponentProperties();  
        }  
    }  
}  

注釈

このコレクションには、タスクに追加されたデータフローコンポーネントが含まれています。 コンポーネントはNew メソッドを呼び出して作成・コレクションに追加されます。

適用対象