MainPipeClass.IDTSObjectModel100_ComponentMetaDataCollection 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
public:
virtual property Microsoft::SqlServer::Dts::Pipeline::Wrapper::Sql2014::IDTSComponentMetaDataCollection100 ^ IDTSObjectModel100_ComponentMetaDataCollection { Microsoft::SqlServer::Dts::Pipeline::Wrapper::Sql2014::IDTSComponentMetaDataCollection100 ^ get(); };
public virtual Microsoft.SqlServer.Dts.Pipeline.Wrapper.Sql2014.IDTSComponentMetaDataCollection100 IDTSObjectModel100_ComponentMetaDataCollection { get; }
member this.IDTSObjectModel100_ComponentMetaDataCollection : Microsoft.SqlServer.Dts.Pipeline.Wrapper.Sql2014.IDTSComponentMetaDataCollection100
Public Overridable ReadOnly Property IDTSObjectModel100_ComponentMetaDataCollection As IDTSComponentMetaDataCollection100
屬性值
IDTSComponentMetaDataCollection100 集合。
範例
下列程式碼範例顯示如何在集合中加入和初始化新的元件。
Imports System
Imports Microsoft.SqlServer.Dts.Runtime
Imports Microsoft.SqlServer.Dts.Pipeline.Wrapper.Sql2014
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.Sql2014;
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 。