Udostępnij przez


IDTSInputCollection100.New Method

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

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

Syntax

'Deklaracja
<DispIdAttribute(14)> _
Function New As IDTSInput100
[DispIdAttribute(14)] 
IDTSInput100 New ()
[DispIdAttribute(14)] 
IDTSInput100^ New ()
/** @attribute DispIdAttribute(14) */ 
IDTSInput100 New ()
DispIdAttribute(14) 
function New () : IDTSInput100

Return Value

Returns the newly added IDTSInput100 object.

Remarks

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.

Example

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";
}

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.