Partager via


SetUsageType méthode

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

Espace de noms :  Microsoft.SqlServer.Dts.Pipeline.Wrapper
Assembly :  Microsoft.SqlServer.DTSPipelineWrap (dans Microsoft.SqlServer.DTSPipelineWrap.dll)

Syntaxe

'Déclaration
Function SetUsageType ( _
    lInputID As Integer, _
    pIDTSVirtualInputObject As IDTSVirtualInput100, _
    lLineageID As Integer, _
    eUsageType As DTSUsageType _
) As IDTSInputColumn100
'Utilisation
Dim instance As IDTSDesigntimeComponent100
Dim lInputID As Integer
Dim pIDTSVirtualInputObject As IDTSVirtualInput100
Dim lLineageID As Integer
Dim eUsageType As DTSUsageType
Dim returnValue As IDTSInputColumn100

returnValue = instance.SetUsageType(lInputID, _
    pIDTSVirtualInputObject, lLineageID, _
    eUsageType)
IDTSInputColumn100 SetUsageType(
    int lInputID,
    IDTSVirtualInput100 pIDTSVirtualInputObject,
    int lLineageID,
    DTSUsageType eUsageType
)
IDTSInputColumn100^ SetUsageType(
    [InAttribute] int lInputID, 
    [InAttribute] IDTSVirtualInput100^ pIDTSVirtualInputObject, 
    [InAttribute] int lLineageID, 
    [InAttribute] DTSUsageType eUsageType
)
abstract SetUsageType : 
        lInputID:int * 
        pIDTSVirtualInputObject:IDTSVirtualInput100 * 
        lLineageID:int * 
        eUsageType:DTSUsageType -> IDTSInputColumn100 
function SetUsageType(
    lInputID : int, 
    pIDTSVirtualInputObject : IDTSVirtualInput100, 
    lLineageID : int, 
    eUsageType : DTSUsageType
) : IDTSInputColumn100

Paramètres

Notes

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 Nothing nullptr unit une référence Null (Nothing dans Visual Basic) is returned.