Partager via


Interface CManagedComponentWrapper

Configures the properties and column collections of a component.

Espace de noms :  Microsoft.SqlServer.Dts.Pipeline.Wrapper
Assembly :  Microsoft.SqlServer.DTSPipelineWrap (en Microsoft.SqlServer.DTSPipelineWrap.dll)

Syntaxe

'Déclaration
<GuidAttribute("B13097E5-4465-4A9C-BB74-FFC8F8E30760")> _
Public Interface CManagedComponentWrapper _
    Inherits IDTSDesigntimeComponent100
'Utilisation
Dim instance As CManagedComponentWrapper
[GuidAttribute("B13097E5-4465-4A9C-BB74-FFC8F8E30760")]
public interface CManagedComponentWrapper : IDTSDesigntimeComponent100
[GuidAttribute(L"B13097E5-4465-4A9C-BB74-FFC8F8E30760")]
public interface class CManagedComponentWrapper : IDTSDesigntimeComponent100
[<GuidAttribute("B13097E5-4465-4A9C-BB74-FFC8F8E30760")>]
type CManagedComponentWrapper =  
    interface
        interface IDTSDesigntimeComponent100
    end
public interface CManagedComponentWrapper extends IDTSDesigntimeComponent100

Le type CManagedComponentWrapper expose les membres suivants.

Méthodes

  Nom Description
Méthode publique AcquireConnections Establishes a connection to a connection manager. (hérité de IDTSDesigntimeComponent100.)
Méthode publique DeleteExternalMetadataColumn Deletes the external metadata column at the specified index from the collection of external metadata columns. (hérité de IDTSDesigntimeComponent100.)
Méthode publique DeleteInput Deletes an IDTSInput100 object from the IDTSInputCollection100 collection. (hérité de IDTSDesigntimeComponent100.)
Méthode publique DeleteOutput Deletes an IDTSOutput100 object from the IDTSOutputCollection100 collection. (hérité de IDTSDesigntimeComponent100.)
Méthode publique DeleteOutputColumn Deletes an IDTSOutputColumn100 object from the IDTSOutputColumnCollection100 collection. (hérité de IDTSDesigntimeComponent100.)
Méthode publique DescribeRedirectedErrorCode Returns the description of the specified error code. (hérité de IDTSDesigntimeComponent100.)
Méthode publique GetEnumerationCollection Returns the IDTSFriendlyEnumCollection100 of a component. (hérité de IDTSDesigntimeComponent100.)
Méthode publique InsertExternalMetadataColumnAt Inserts a new external metadata column into the collection of external metadata columns at the specified index. (hérité de IDTSDesigntimeComponent100.)
Méthode publique InsertInput Adds an IDTSInput100 object to the IDTSInputCollection100. (hérité de IDTSDesigntimeComponent100.)
Méthode publique InsertOutput Adds a new IDTSOutput100 object. (hérité de IDTSDesigntimeComponent100.)
Méthode publique InsertOutputColumnAt Creates a new IDTSOutputColumn100 object and inserts it into the IDTSOutputColumnCollection100. (hérité de IDTSDesigntimeComponent100.)
Méthode publique MapInputColumn Establishes a relationship between an input column and a corresponding external metadata column. (hérité de IDTSDesigntimeComponent100.)
Méthode publique MapOutputColumn Establishes a relationship between an output column and a corresponding external metadata column. (hérité de IDTSDesigntimeComponent100.)
Méthode publique OnDeletingInputColumn Called when deleting an IDTSInputColumn100 object from the IDTSInputColumnCollection100. (hérité de IDTSDesigntimeComponent100.)
Méthode publique OnInputPathAttached Called when an IDTSInput100 object is connected to another component through the IDTSPath100 interface. (hérité de IDTSDesigntimeComponent100.)
Méthode publique OnInputPathDetached Called when an IDTSPath100 object that contains the specified IDTSInput100 object is deleted. (hérité de IDTSDesigntimeComponent100.)
Méthode publique OnOutputPathAttached Called when an IDTSOutput100 object of the component is attached to a downstream component. (hérité de IDTSDesigntimeComponent100.)
Méthode publique ProvideComponentProperties Initializes the ComponentMetaData of the component when a component is first added to the data flow task. (hérité de IDTSDesigntimeComponent100.)
Méthode publique ReinitializeMetaData Fixes any errors identified during design-time validation that result in the component returning VS_NEEDSNEWMETADATA. (hérité de IDTSDesigntimeComponent100.)
Méthode publique ReleaseConnections Frees the connections established during AcquireConnections at either design time or run time. (hérité de IDTSDesigntimeComponent100.)
Méthode publique SetComponentProperty Assigns a value to an IDTSCustomProperty100 of a component. (hérité de IDTSDesigntimeComponent100.)
Méthode publique SetExternalMetadataColumnDataTypeProperties Sets the data type properties of the specified external metadata column. (hérité de IDTSDesigntimeComponent100.)
Méthode publique SetExternalMetadataColumnProperty Sets an individual property of an external metadata column. (hérité de IDTSDesigntimeComponent100.)
Méthode publique SetInputColumnProperty Assigns a value to the IDTSCustomProperty100 of an IDTSInputColumn100 object. (hérité de IDTSDesigntimeComponent100.)
Méthode publique SetInputProperty Assigns a value to the IDTSCustomProperty100 of an IDTSInput100 object. (hérité de IDTSDesigntimeComponent100.)
Méthode publique SetOutputColumnDataTypeProperties Sets the data type properties of an IDTSOutputColumn100 object. (hérité de IDTSDesigntimeComponent100.)
Méthode publique SetOutputColumnProperty Sets the value of an IDTSCustomProperty100 for an IDTSOutputColumn100 object. (hérité de IDTSDesigntimeComponent100.)
Méthode publique SetOutputProperty Sets the value of an IDTSCustomProperty100 on an IDTSOutput100 object. (hérité de IDTSDesigntimeComponent100.)
Méthode publique SetUsageType Creates an IDTSInputColumn100 object in the IDTSInputColumnCollection100 of the component and sets the UsageType property of the column. (hérité de IDTSDesigntimeComponent100.)
Méthode publique Validate Verifies that the component is correctly configured. (hérité de IDTSDesigntimeComponent100.)

Haut de la page

Notes

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.

Exemples

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("SSIS.Pipeline.2")).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();
            }
        }
    }
}