Freigeben über


CManagedComponentWrapper-Schnittstelle

Configures the properties and column collections of a component.

Namespace:  Microsoft.SqlServer.Dts.Pipeline.Wrapper
Assembly:  Microsoft.SqlServer.DTSPipelineWrap (in Microsoft.SqlServer.DTSPipelineWrap.dll)

Syntax

'Declaration
<GuidAttribute("FF5DD3F1-99C1-4FFB-B097-1B1B2B9E9B2D")> _
Public Interface CManagedComponentWrapper _
    Inherits IDTSDesigntimeComponent100
'Usage
Dim instance As CManagedComponentWrapper
[GuidAttribute("FF5DD3F1-99C1-4FFB-B097-1B1B2B9E9B2D")]
public interface CManagedComponentWrapper : IDTSDesigntimeComponent100
[GuidAttribute(L"FF5DD3F1-99C1-4FFB-B097-1B1B2B9E9B2D")]
public interface class CManagedComponentWrapper : IDTSDesigntimeComponent100
[<GuidAttribute("FF5DD3F1-99C1-4FFB-B097-1B1B2B9E9B2D")>]
type CManagedComponentWrapper =  
    interface 
        interface IDTSDesigntimeComponent100 
    end
public interface CManagedComponentWrapper extends IDTSDesigntimeComponent100

Der CManagedComponentWrapper-Typ macht folgende Elemente verfügbar.

Methoden

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

Zum Anfang

Hinweise

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.

Beispiele

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();
            }
        }
    }
}

Siehe auch

Verweis

Microsoft.SqlServer.Dts.Pipeline.Wrapper-Namespace