MainPipeClass.ComponentMetaDataCollection 속성

정의

태스크에서 데이터 흐름 구성 요소의 컬렉션을 가져옵니다.

public:
 virtual property Microsoft::SqlServer::Dts::Pipeline::Wrapper::IDTSComponentMetaDataCollection100 ^ ComponentMetaDataCollection { Microsoft::SqlServer::Dts::Pipeline::Wrapper::IDTSComponentMetaDataCollection100 ^ get(); };
[System.Runtime.InteropServices.DispId(12)]
public virtual Microsoft.SqlServer.Dts.Pipeline.Wrapper.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.IDTSComponentMetaDataCollection100
Public Overridable ReadOnly Property ComponentMetaDataCollection As IDTSComponentMetaDataCollection100

속성 값

IDTSComponentMetaDataCollection100 컬렉션입니다.

구현

특성

예제

다음 코드 예제에서는 컬렉션에서 새 구성 요소를 추가하고 초기화하는 방법을 보여 있습니다.

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();  
        }  
    }  
}  
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  

설명

이 컬렉션에는 작업에 추가된 데이터 흐름 구성 요소가 포함됩니다. 메서드를 호출 New 하여 구성 요소가 만들어지고 컬렉션에 추가됩니다.

적용 대상