Share via


CManagedComponentWrapper Interface

Definition

public interface class CManagedComponentWrapper : Microsoft::SqlServer::Dts::Pipeline::Wrapper::Sql2012::IDTSDesigntimeComponent100
[System.Runtime.InteropServices.CoClass(typeof(Microsoft.SqlServer.Dts.Pipeline.Wrapper.Sql2012.CManagedComponentWrapperClass))]
[System.Runtime.InteropServices.Guid("FF5DD3F1-99C1-4FFB-B097-1B1B2B9E9B2D")]
public interface CManagedComponentWrapper : Microsoft.SqlServer.Dts.Pipeline.Wrapper.Sql2012.IDTSDesigntimeComponent100
[<System.Runtime.InteropServices.CoClass(typeof(Microsoft.SqlServer.Dts.Pipeline.Wrapper.Sql2012.CManagedComponentWrapperClass))>]
[<System.Runtime.InteropServices.Guid("FF5DD3F1-99C1-4FFB-B097-1B1B2B9E9B2D")>]
type CManagedComponentWrapper = interface
    interface IDTSDesigntimeComponent100
Public Interface CManagedComponentWrapper
Implements IDTSDesigntimeComponent100
Derived
Attributes
Implements

Examples

The following code sample shows how the design-time instance of a component is used to set the custom property of a component. In this example, the CustomPropertyCollection of the component metadata could be used to directly set the property, but would bypass the ability of the component to monitor and respond to changes to the property.

IDTSComponentMetaData100 cmp = dataflowTask.ComponentMetaDataCollection.New();  
cmp.ComponentClassID = "DTSAdapter.OleDbSource";  
CManagedComponentWrapper dtSource = cmp.Instantiate();  
dtSource.SetComponentProperty("SqlCommand","select * from Production.Products");  
Dim cmp As IDTSComponentMetaData100 = dataflowTask.ComponentMetaDataCollection.New   
cmp.ComponentClassID = "DTSAdapter.OleDbSource"   
Dim dtSource As CManagedComponentWrapper = cmp.Instantiate   
dtSource.SetComponentProperty("SqlCommand", "select * from Production.Products")  

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.

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