IDTSDesigntimeComponent100.SetUsageType Method (Int32, IDTSVirtualInput100, Int32, DTSUsageType)

 

Applies To: SQL Server 2016 Preview

Creates an IDTSInputColumn100 object in the IDTSInputColumnCollection100 of the component and sets the UsageType property of the column.

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

Syntax

[DispIdAttribute(16)]
IDTSInputColumn100 SetUsageType(
    int lInputID,
    IDTSVirtualInput100 pIDTSVirtualInputObject,
    int lLineageID,
    DTSUsageType eUsageType
)
[DispIdAttribute(16)]
IDTSInputColumn100^ SetUsageType(
    int lInputID,
    IDTSVirtualInput100^ pIDTSVirtualInputObject,
    int lLineageID,
    DTSUsageType eUsageType
)
[<DispIdAttribute(16)>]
abstract SetUsageType : 
        lInputID:int *
        pIDTSVirtualInputObject:IDTSVirtualInput100 *
        lLineageID:int *
        eUsageType:DTSUsageType -> IDTSInputColumn100
<DispIdAttribute(16)>
Function SetUsageType (
    lInputID As Integer,
    pIDTSVirtualInputObject As IDTSVirtualInput100,
    lLineageID As Integer,
    eUsageType As DTSUsageType
) As IDTSInputColumn100

Parameters

Return Value

Type: Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSInputColumn100

The IDTSInputColumn100 object whose UsageType is set.

Remarks

SetUsageType is called when a column from the IDTSVirtualInputColumnCollection100 is selected for a component. If the usageType is UT_READONLY or UT_READWRITE, a new input column is created for the component that reflects the IDTSVirtualInputColumn100 specified by the lLineageID parameter. If usageType is UT_IGNORED and the column exists in the collection, the column is removed and null is returned.

See Also

IDTSDesigntimeComponent100 Interface
Microsoft.SqlServer.Dts.Pipeline.Wrapper Namespace

Return to top