Compartir a través de


IDTSInputCollection100.New Método

Creates a new IDTSInput100 object and adds it to an IDTSInputCollection100.

Espacio de nombres:  Microsoft.SqlServer.Dts.Pipeline.Wrapper
Ensamblado:  Microsoft.SqlServer.DTSPipelineWrap (en Microsoft.SqlServer.DTSPipelineWrap.dll)

Sintaxis

'Declaración
Function New As IDTSInput100
'Uso
Dim instance As IDTSInputCollection100 
Dim returnValue As IDTSInput100 

returnValue = instance.New()
IDTSInput100 New()
IDTSInput100^ New()
abstract New : unit -> IDTSInput100
function New() : IDTSInput100

Valor devuelto

Tipo: Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSInput100
Returns the newly added IDTSInput100 object.

Comentarios

The New method creates an input object, adds it to the collection, and returns the input. A component typically creates an input object during a call to the ProvideComponentProperties method.

When programmatically adding an input to an existing component, the InsertInput method of the design-time instance of the component should be called instead of directly modifying the component's metadata. Direct access to the metadata bypasses the component's ability to monitor and prevent changes to its metadata.

Ejemplos

The following code example adds an input object to the input collection of a component.

public override void ProvideComponentProperties()
{
    IDTSInput100 input = ComponentMetaData.InputCollection.New();
    input.Name = "DTSSampleInput";
}

Vea también

Referencia

IDTSInputCollection100 Interfaz

Espacio de nombres Microsoft.SqlServer.Dts.Pipeline.Wrapper