共用方式為


IDTSDesigntimeComponent100.SetUsageType Method

Definition

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

public:
 Microsoft::SqlServer::Dts::Pipeline::Wrapper::IDTSInputColumn100 ^ SetUsageType(int lInputID, Microsoft::SqlServer::Dts::Pipeline::Wrapper::IDTSVirtualInput100 ^ pIDTSVirtualInputObject, int lLineageID, Microsoft::SqlServer::Dts::Pipeline::Wrapper::DTSUsageType eUsageType);
[System.Runtime.InteropServices.DispId(16)]
public Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSInputColumn100 SetUsageType (int lInputID, Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSVirtualInput100 pIDTSVirtualInputObject, int lLineageID, Microsoft.SqlServer.Dts.Pipeline.Wrapper.DTSUsageType eUsageType);
[<System.Runtime.InteropServices.DispId(16)>]
abstract member SetUsageType : int * Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSVirtualInput100 * int * Microsoft.SqlServer.Dts.Pipeline.Wrapper.DTSUsageType -> Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSInputColumn100
Public Function SetUsageType (lInputID As Integer, pIDTSVirtualInputObject As IDTSVirtualInput100, lLineageID As Integer, eUsageType As DTSUsageType) As IDTSInputColumn100

Parameters

lInputID
Int32

The ID of the IDTSInput100.

pIDTSVirtualInputObject
IDTSVirtualInput100

The IDTSVirtualInput100 object that contains the virtual input column and that is used to map the IDTSInputColumn100 object.

lLineageID
Int32

The LineageID property of the IDTSVirtualInputColumn100 object.

eUsageType
DTSUsageType

A value from the DTSUsageType enumeration that is assigned to the IDTSInputColumn100.

Returns

The IDTSInputColumn100 object whose UsageType is set.

Attributes

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.

Applies to