CManagedComponentWrapper Interfaz

Definición

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
Derivado
Atributos
Implementaciones

Ejemplos

En el ejemplo de código siguiente se muestra cómo agregar mediante programación un componente a una tarea de flujo de datos y crear una instancia de la interfaz en tiempo de diseño.

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   

Comentarios

CManagedComponentWrapper representa la interfaz de IDTSDesigntimeComponent100 que se usa en la modificación en tiempo de diseño de un componente de flujo de datos. CManagedComponentWrapper se usa para configurar las propiedades y las colecciones de columnas de un componente de flujo de datos durante el tiempo de diseño. Aunque los metadatos de un componente se pueden modificar directamente, esto debe evitarse porque, al hacerlo, se omite la capacidad del componente de validar las modificaciones en sus metadatos. Se crea una instancia de CManagedComponentWrapper llamando al método Instantiate de la interfaz de IDTSComponentMetaData100 un componente.

Los métodos y propiedades definidos por la interfaz son visibles en los tipos CManagedComponentWrapperClass y IDTSDesigntimeComponent100.

Métodos

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

Se aplica a