다음을 통해 공유


MainPipeClass.IDTSObjectModel100_ComponentMetaDataCollection 속성

Gets the collection of data flow components in the task.

네임스페이스:  Microsoft.SqlServer.Dts.Pipeline.Wrapper
어셈블리:  Microsoft.SqlServer.DTSPipelineWrap(Microsoft.SqlServer.DTSPipelineWrap.dll)

구문

‘선언
Public Overridable ReadOnly Property IDTSObjectModel100_ComponentMetaDataCollection As IDTSComponentMetaDataCollection100 
    Get
‘사용 방법
Dim instance As MainPipeClass 
Dim value As IDTSComponentMetaDataCollection100 

value = instance.IDTSObjectModel100_ComponentMetaDataCollection
public virtual IDTSComponentMetaDataCollection100 IDTSObjectModel100_ComponentMetaDataCollection { get; }
public:
virtual property IDTSComponentMetaDataCollection100^ IDTSObjectModel100_ComponentMetaDataCollection {
    IDTSComponentMetaDataCollection100^ get ();
}
abstract IDTSObjectModel100_ComponentMetaDataCollection : IDTSComponentMetaDataCollection100 
override IDTSObjectModel100_ComponentMetaDataCollection : IDTSComponentMetaDataCollection100
function get IDTSObjectModel100_ComponentMetaDataCollection () : IDTSComponentMetaDataCollection100

속성 값

유형: Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSComponentMetaDataCollection100
The IDTSComponentMetaDataCollection100 collection.

구현

IDTSObjectModel100.ComponentMetaDataCollection

주의

This collection contains the data flow components that have been added to the task. Components are created and added to the collection by calling the New method.

The following code example shows how to add and initialize a new component in the collection.

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

참고 항목

참조

MainPipeClass 클래스

Microsoft.SqlServer.Dts.Pipeline.Wrapper 네임스페이스