MainPipeClass.ComponentMetaDataCollection Property
Applies To: SQL Server 2016 Preview
Gets the collection of data flow components in the task.
Namespace: Microsoft.SqlServer.Dts.Pipeline.Wrapper
Assembly: Microsoft.SqlServer.DTSPipelineWrap (in Microsoft.SqlServer.DTSPipelineWrap.dll)
Syntax
[DispIdAttribute(12)]
public virtual IDTSComponentMetaDataCollection100 ComponentMetaDataCollection {
[DispIdAttribute(12)]
get;
}
public:
[DispIdAttribute(12)]
property IDTSComponentMetaDataCollection100^ ComponentMetaDataCollection {
[DispIdAttribute(12)]
virtual IDTSComponentMetaDataCollection100^ get();
}
[<DispIdAttribute(12)>]
abstract ComponentMetaDataCollection : IDTSComponentMetaDataCollection100 with get
[<DispIdAttribute(12)>]
override ComponentMetaDataCollection : IDTSComponentMetaDataCollection100 with get
<DispIdAttribute(12)>
Public Overridable ReadOnly Property ComponentMetaDataCollection As IDTSComponentMetaDataCollection100
Property Value
Type: Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSComponentMetaDataCollection100
The IDTSComponentMetaDataCollection100 collection.
Implements
IDTSPipeline100.ComponentMetaDataCollection
Remarks
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.
Examples
Legacy Code Example
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
See Also
MainPipeClass Class
Microsoft.SqlServer.Dts.Pipeline.Wrapper Namespace
Return to top