Share via


CManagedComponentWrapper Interface

Definition

public interface class CManagedComponentWrapper : Microsoft::SqlServer::Dts::Pipeline::Wrapper::Sql2014::IDTSDesigntimeComponent100
[System.Runtime.InteropServices.CoClass(typeof(Microsoft.SqlServer.Dts.Pipeline.Wrapper.Sql2014.CManagedComponentWrapperClass))]
[System.Runtime.InteropServices.Guid("0058874E-E037-4BA9-920C-349773B5351A")]
public interface CManagedComponentWrapper : Microsoft.SqlServer.Dts.Pipeline.Wrapper.Sql2014.IDTSDesigntimeComponent100
[<System.Runtime.InteropServices.CoClass(typeof(Microsoft.SqlServer.Dts.Pipeline.Wrapper.Sql2014.CManagedComponentWrapperClass))>]
[<System.Runtime.InteropServices.Guid("0058874E-E037-4BA9-920C-349773B5351A")>]
type CManagedComponentWrapper = interface
    interface IDTSDesigntimeComponent100
Public Interface CManagedComponentWrapper
Implements IDTSDesigntimeComponent100
Derived
Attributes
Implements

Examples

The following code example demonstrates how to programmatically add a component to a data flow task and create an instance of the design-time interface.

using System;  
using Microsoft.SqlServer.Dts.Runtime;  
using Microsoft.SqlServer.Dts.Pipeline.Wrapper;  

namespace Microsoft.Samples.SqlServer.Dts  
{  
    class CreateComponent  
    {  
         [STAThread]  
        static void Main(string[] args)  
        {  
            // Create the package.  
            Package p = new Package();  

            // Add the data flow task to the package.  
            MainPipe dataFlowTask = ((TaskHost)p.Executables.Add("DTS.Pipeline.1")).InnerObject as MainPipe;  

            if (dataFlowTask != null)  
            {  
                // Add a component to the data flow task.  
                IDTSComponentMetaData100 metaData = dataFlowTask.ComponentMetaDataCollection.New();  

                // Set the class id of the component.  
                metaData.ComponentClassID = "";  

                // Create an instance of the component.  
                CManagedComponentWrapper wrapper = metaData.Instantiate();  

                // Initialize the component by calling ProvideComponentProperties.  
                wrapper.ProvideComponentProperties();  
            }  
        }  
    }  
}  
See Also  
Microsoft.SqlServer.Dts.Pipeline.Wrapper Namespace  
Return   

Remarks

The CManagedComponentWrapper represents the interface of IDTSDesigntimeComponent100 that is used in design time modification of a data flow component. CManagedComponentWrapper is used to configure the properties and column collections of a data flow component during design time. While the metadata of a component can be modified directly, this should be avoided because doing so bypasses the component's ability to validate modifications to its metadata. An instance of CManagedComponentWrapper is created by calling the Instantiate method of a component's IDTSComponentMetaData100 interface.

The methods and properties defined by the interface are visible on both the CManagedComponentWrapperClass and the IDTSDesigntimeComponent100 types.

Methods

AcquireConnections(Object) (Inherited from IDTSDesigntimeComponent100)
DeleteExternalMetadataColumn(Int32, Int32) (Inherited from IDTSDesigntimeComponent100)
DeleteInput(Int32) (Inherited from IDTSDesigntimeComponent100)
DeleteOutput(Int32) (Inherited from IDTSDesigntimeComponent100)
DeleteOutputColumn(Int32, Int32) (Inherited from IDTSDesigntimeComponent100)
DescribeRedirectedErrorCode(Int32) (Inherited from IDTSDesigntimeComponent100)
GetEnumerationCollection(String) (Inherited from IDTSDesigntimeComponent100)
InsertExternalMetadataColumnAt(Int32, Int32, String, String) (Inherited from IDTSDesigntimeComponent100)
InsertInput(DTSInsertPlacement, Int32) (Inherited from IDTSDesigntimeComponent100)
InsertOutput(DTSInsertPlacement, Int32) (Inherited from IDTSDesigntimeComponent100)
InsertOutputColumnAt(Int32, Int32, String, String) (Inherited from IDTSDesigntimeComponent100)
MapInputColumn(Int32, Int32, Int32) (Inherited from IDTSDesigntimeComponent100)
MapOutputColumn(Int32, Int32, Int32, Boolean) (Inherited from IDTSDesigntimeComponent100)
OnDeletingInputColumn(Int32, Int32) (Inherited from IDTSDesigntimeComponent100)
OnInputPathAttached(Int32) (Inherited from IDTSDesigntimeComponent100)
OnInputPathDetached(Int32) (Inherited from IDTSDesigntimeComponent100)
OnOutputPathAttached(Int32) (Inherited from IDTSDesigntimeComponent100)
ProvideComponentProperties() (Inherited from IDTSDesigntimeComponent100)
ReinitializeMetaData() (Inherited from IDTSDesigntimeComponent100)
ReleaseConnections() (Inherited from IDTSDesigntimeComponent100)
SetComponentProperty(String, Object) (Inherited from IDTSDesigntimeComponent100)
SetExternalMetadataColumnDataTypeProperties(Int32, Int32, DataType, Int32, Int32, Int32, Int32) (Inherited from IDTSDesigntimeComponent100)
SetExternalMetadataColumnProperty(Int32, Int32, String, Object) (Inherited from IDTSDesigntimeComponent100)
SetInputColumnProperty(Int32, Int32, String, Object) (Inherited from IDTSDesigntimeComponent100)
SetInputProperty(Int32, String, Object) (Inherited from IDTSDesigntimeComponent100)
SetOutputColumnDataTypeProperties(Int32, Int32, DataType, Int32, Int32, Int32, Int32) (Inherited from IDTSDesigntimeComponent100)
SetOutputColumnProperty(Int32, Int32, String, Object) (Inherited from IDTSDesigntimeComponent100)
SetOutputProperty(Int32, String, Object) (Inherited from IDTSDesigntimeComponent100)
SetUsageType(Int32, IDTSVirtualInput100, Int32, DTSUsageType) (Inherited from IDTSDesigntimeComponent100)
Validate() (Inherited from IDTSDesigntimeComponent100)

Applies to