MainPipeClass.IDTSObjectModel100_ComponentMetaDataCollection Özelliği
Alır koleksiyon görev veri akışı bileşen.
Ad Alanı: Microsoft.SqlServer.Dts.Pipeline.Wrapper
Derleme: Microsoft.SqlServer.DTSPipelineWrap (Microsoft.SqlServer.DTSPipelineWrap içinde.dll)
Sözdizimi
'Bildirim
Public Overridable ReadOnly Property IDTSObjectModel100_ComponentMetaDataCollection As IDTSComponentMetaDataCollection100
Get
'Kullanım
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
Özellik Değeri
Tür: Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSComponentMetaDataCollection100
The IDTSComponentMetaDataCollection100 koleksiyon.
Uygulamalar
Açıklamalar
Bu koleksiyon göreve eklenen veri akışı bileşenleri içerir.Bileşenleri oluşturulur ve eklenen koleksiyon çağırarak New yöntem.
Örnekler
Aşağıdaki kod örneği, koleksiyon içinde yeni bir bileşen başlatılamıyor ve eklemek gösterilmiştir.
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("SSIS.Pipeline.2")).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("SSIS.Pipeline.2"), 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