CManagedComponentWrapper Interface

Definition

Configures the properties and column collections of a component.

public interface class CManagedComponentWrapper : Microsoft::SqlServer::Dts::Pipeline::Wrapper::IDTSDesigntimeComponent100
[System.Runtime.InteropServices.CoClass(typeof(Microsoft.SqlServer.Dts.Pipeline.Wrapper.CManagedComponentWrapperClass))]
[System.Runtime.InteropServices.Guid("B7EBC995-699A-4067-A34C-40FAF745C987")]
public interface CManagedComponentWrapper : Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSDesigntimeComponent100
[System.Runtime.InteropServices.CoClass(typeof(Microsoft.SqlServer.Dts.Pipeline.Wrapper.CManagedComponentWrapperClass))]
[System.Runtime.InteropServices.Guid("E1ACC72B-14CE-4A91-B45F-E87773C1ABB5")]
public interface CManagedComponentWrapper : Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSDesigntimeComponent100
[System.Runtime.InteropServices.CoClass(typeof(Microsoft.SqlServer.Dts.Pipeline.Wrapper.CManagedComponentWrapperClass))]
[System.Runtime.InteropServices.Guid("1C0F2743-58D4-4663-9BC0-06B4D19B51A7")]
public interface CManagedComponentWrapper : Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSDesigntimeComponent100
[<System.Runtime.InteropServices.CoClass(typeof(Microsoft.SqlServer.Dts.Pipeline.Wrapper.CManagedComponentWrapperClass))>]
[<System.Runtime.InteropServices.Guid("B7EBC995-699A-4067-A34C-40FAF745C987")>]
type CManagedComponentWrapper = interface
    interface IDTSDesigntimeComponent100
[<System.Runtime.InteropServices.CoClass(typeof(Microsoft.SqlServer.Dts.Pipeline.Wrapper.CManagedComponentWrapperClass))>]
[<System.Runtime.InteropServices.Guid("E1ACC72B-14CE-4A91-B45F-E87773C1ABB5")>]
type CManagedComponentWrapper = interface
    interface IDTSDesigntimeComponent100
[<System.Runtime.InteropServices.CoClass(typeof(Microsoft.SqlServer.Dts.Pipeline.Wrapper.CManagedComponentWrapperClass))>]
[<System.Runtime.InteropServices.Guid("1C0F2743-58D4-4663-9BC0-06B4D19B51A7")>]
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();  
            }  
        }  
    }  
}  

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)

Establishes a connection to a connection manager.

(Inherited from IDTSDesigntimeComponent100)
DeleteExternalMetadataColumn(Int32, Int32)

Deletes the external metadata column at the specified index from the collection of external metadata columns.

(Inherited from IDTSDesigntimeComponent100)
DeleteInput(Int32)

Deletes an IDTSInput100 object from the IDTSInputCollection100 collection.

(Inherited from IDTSDesigntimeComponent100)
DeleteOutput(Int32)

Deletes an IDTSOutput100 object from the IDTSOutputCollection100 collection.

(Inherited from IDTSDesigntimeComponent100)
DeleteOutputColumn(Int32, Int32)

Deletes an IDTSOutputColumn100 object from the IDTSOutputColumnCollection100 collection.

(Inherited from IDTSDesigntimeComponent100)
DescribeRedirectedErrorCode(Int32)

Returns the description of the specified error code.

(Inherited from IDTSDesigntimeComponent100)
GetEnumerationCollection(String)

Returns the IDTSFriendlyEnumCollection100 of a component.

(Inherited from IDTSDesigntimeComponent100)
InsertExternalMetadataColumnAt(Int32, Int32, String, String)

Inserts a new external metadata column into the collection of external metadata columns at the specified index.

(Inherited from IDTSDesigntimeComponent100)
InsertInput(DTSInsertPlacement, Int32)

Adds an IDTSInput100 object to the IDTSInputCollection100.

(Inherited from IDTSDesigntimeComponent100)
InsertOutput(DTSInsertPlacement, Int32)

Adds a new IDTSOutput100 object.

(Inherited from IDTSDesigntimeComponent100)
InsertOutputColumnAt(Int32, Int32, String, String)

Creates a new IDTSOutputColumn100 object and inserts it into the IDTSOutputColumnCollection100.

(Inherited from IDTSDesigntimeComponent100)
MapInputColumn(Int32, Int32, Int32)

Establishes a relationship between an input column and a corresponding external metadata column.

(Inherited from IDTSDesigntimeComponent100)
MapOutputColumn(Int32, Int32, Int32, Boolean)

Establishes a relationship between an output column and a corresponding external metadata column.

(Inherited from IDTSDesigntimeComponent100)
OnDeletingInputColumn(Int32, Int32)

Called when deleting an IDTSInputColumn100 object from the IDTSInputColumnCollection100.

(Inherited from IDTSDesigntimeComponent100)
OnInputPathAttached(Int32)

Called when an IDTSInput100 object is connected to another component through the IDTSPath100 interface.

(Inherited from IDTSDesigntimeComponent100)
OnInputPathDetached(Int32)

Called when an IDTSPath100 object that contains the specified IDTSInput100 object is deleted.

(Inherited from IDTSDesigntimeComponent100)
OnOutputPathAttached(Int32)

Called when an IDTSOutput100 object of the component is attached to a downstream component.

(Inherited from IDTSDesigntimeComponent100)
ProvideComponentProperties()

Initializes the ComponentMetaData of the component when a component is first added to the data flow task.

(Inherited from IDTSDesigntimeComponent100)
ReinitializeMetaData()

Fixes any errors identified during design-time validation that result in the component returning VS_NEEDSNEWMETADATA.

(Inherited from IDTSDesigntimeComponent100)
ReleaseConnections()

Frees the connections established during AcquireConnections(Object) at either design time or run time.

(Inherited from IDTSDesigntimeComponent100)
SetComponentProperty(String, Object)

Assigns a value to an IDTSCustomProperty100 of a component.

(Inherited from IDTSDesigntimeComponent100)
SetExternalMetadataColumnDataTypeProperties(Int32, Int32, DataType, Int32, Int32, Int32, Int32)

Sets the data type properties of the specified external metadata column.

(Inherited from IDTSDesigntimeComponent100)
SetExternalMetadataColumnProperty(Int32, Int32, String, Object)

Sets an individual property of an external metadata column.

(Inherited from IDTSDesigntimeComponent100)
SetInputColumnProperty(Int32, Int32, String, Object)

Assigns a value to the IDTSCustomProperty100 of an IDTSInputColumn100 object.

(Inherited from IDTSDesigntimeComponent100)
SetInputProperty(Int32, String, Object)

Assigns a value to the IDTSCustomProperty100 of an IDTSInput100 object.

(Inherited from IDTSDesigntimeComponent100)
SetOutputColumnDataTypeProperties(Int32, Int32, DataType, Int32, Int32, Int32, Int32)

Sets the data type properties of an IDTSOutputColumn100 object.

(Inherited from IDTSDesigntimeComponent100)
SetOutputColumnProperty(Int32, Int32, String, Object)

Sets the value of an IDTSCustomProperty100 for an IDTSOutputColumn100 object.

(Inherited from IDTSDesigntimeComponent100)
SetOutputProperty(Int32, String, Object)

Sets the value of an IDTSCustomProperty100 for an IDTSOutput100 object.

(Inherited from IDTSDesigntimeComponent100)
SetUsageType(Int32, IDTSVirtualInput100, Int32, DTSUsageType)

Creates an IDTSInputColumn100 object in the IDTSInputColumnCollection100 of the component and sets the UsageType property of the column.

(Inherited from IDTSDesigntimeComponent100)
Validate()

Verifies that the component is correctly configured.

(Inherited from IDTSDesigntimeComponent100)

Applies to