다음을 통해 공유


MainPipeClass.ComponentMetaDataCollection Property

Gets the collection of data flow components in the task.

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

구문

‘선언
<DispIdAttribute(12)> _
Public Overridable ReadOnly Property ComponentMetaDataCollection As IDTSComponentMetaDataCollection90 Implements IDTSPipeline90.ComponentMetaDataCollection
[DispIdAttribute(12)] 
public virtual IDTSComponentMetaDataCollection90 IDTSPipeline90.ComponentMetaDataCollection { get; }
[DispIdAttribute(12)] 
public:
virtual property IDTSComponentMetaDataCollection90^ ComponentMetaDataCollection {
    IDTSComponentMetaDataCollection90^ get () = IDTSPipeline90::ComponentMetaDataCollection::get;
}
J#은 명시적 인터페이스 구현의 사용을 지원하지만 새로 선언하는 것은 지원하지 않습니다.
JScript는 명시적 인터페이스 구현의 사용을 지원하지만 새로 선언하는 것은 지원하지 않습니다.

속성 값

The IDTSComponentMetaDataCollection90 collection.

주의

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;
            IDTSComponentMetaData90 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 IDTSComponentMetaData90 = mp.ComponentMetaDataCollection.New 
     md.ComponentClassID = "DTSAdapter.OleDbSource" 
     Dim wrp As CManagedComponentWrapper = md.Instantiate 
     wrp.ProvideComponentProperties 
   End Sub 
 End Class 
End Namespace

스레드 보안

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

플랫폼

개발 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

대상 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

참고 항목

참조

MainPipeClass Class
MainPipeClass Members
Microsoft.SqlServer.Dts.Pipeline.Wrapper Namespace