다음을 통해 공유


IDTSDesigntimeComponent90.SetUsageType Method

Creates an IDTSInputColumn90 object in the IDTSInputColumnCollection90 of the component and sets the UsageType property of the column.

네임스페이스: Microsoft.SqlServer.Dts.Pipeline.Wrapper
어셈블리: Microsoft.SqlServer.DTSPipelineWrap (in microsoft.sqlserver.dtspipelinewrap.dll)

구문

‘선언
<DispIdAttribute(16)> _
Function SetUsageType ( _
    <InAttribute> lInputID As Integer, _
    <InAttribute> pIDTSVirtualInputObject As IDTSVirtualInput90, _
    <InAttribute> lLineageID As Integer, _
    <InAttribute> eUsageType As DTSUsageType _
) As IDTSInputColumn90
[DispIdAttribute(16)] 
IDTSInputColumn90 SetUsageType (
    [InAttribute] int lInputID,
    [InAttribute] IDTSVirtualInput90 pIDTSVirtualInputObject,
    [InAttribute] int lLineageID,
    [InAttribute] DTSUsageType eUsageType
)
[DispIdAttribute(16)] 
IDTSInputColumn90^ SetUsageType (
    [InAttribute] int lInputID, 
    [InAttribute] IDTSVirtualInput90^ pIDTSVirtualInputObject, 
    [InAttribute] int lLineageID, 
    [InAttribute] DTSUsageType eUsageType
)
/** @attribute DispIdAttribute(16) */ 
IDTSInputColumn90 SetUsageType (
    /** @attribute InAttribute() */ int lInputID, 
    /** @attribute InAttribute() */ IDTSVirtualInput90 pIDTSVirtualInputObject, 
    /** @attribute InAttribute() */ int lLineageID, 
    /** @attribute InAttribute() */ DTSUsageType eUsageType
)
DispIdAttribute(16) 
function SetUsageType (
    lInputID : int, 
    pIDTSVirtualInputObject : IDTSVirtualInput90, 
    lLineageID : int, 
    eUsageType : DTSUsageType
) : IDTSInputColumn90

매개 변수

  • eUsageType
    A value from the DTSUsageType enumeration that is assigned to the IDTSInputColumn90.

반환 값

The IDTSInputColumn90 object whose UsageType is set.

주의

SetUsageType is called when a column from the IDTSVirtualInputColumnCollection90 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 IDTSVirtualInputColumn90 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.

스레드 보안

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.

플랫폼

개발 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

대상 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

참고 항목

참조

IDTSDesigntimeComponent90 Interface
IDTSDesigntimeComponent90 Members
Microsoft.SqlServer.Dts.Pipeline.Wrapper Namespace