共用方式為


PipelineComponent.SetOutputColumnDataTypeProperties 方法

Sets the data type properties of an IDTSOutputColumn100 object.

此 API 不符合 CLS 標準。 

命名空間:  Microsoft.SqlServer.Dts.Pipeline
組件:  Microsoft.SqlServer.PipelineHost (在 Microsoft.SqlServer.PipelineHost.dll 中)

語法

'宣告
<CLSCompliantAttribute(False)> _
Public Overridable Sub SetOutputColumnDataTypeProperties ( _
    iOutputID As Integer, _
    iOutputColumnID As Integer, _
    eDataType As DataType, _
    iLength As Integer, _
    iPrecision As Integer, _
    iScale As Integer, _
    iCodePage As Integer _
)
'用途
Dim instance As PipelineComponent 
Dim iOutputID As Integer 
Dim iOutputColumnID As Integer 
Dim eDataType As DataType 
Dim iLength As Integer 
Dim iPrecision As Integer 
Dim iScale As Integer 
Dim iCodePage As Integer

instance.SetOutputColumnDataTypeProperties(iOutputID, _
    iOutputColumnID, eDataType, iLength, _
    iPrecision, iScale, iCodePage)
[CLSCompliantAttribute(false)]
public virtual void SetOutputColumnDataTypeProperties(
    int iOutputID,
    int iOutputColumnID,
    DataType eDataType,
    int iLength,
    int iPrecision,
    int iScale,
    int iCodePage
)
[CLSCompliantAttribute(false)]
public:
virtual void SetOutputColumnDataTypeProperties(
    int iOutputID, 
    int iOutputColumnID, 
    DataType eDataType, 
    int iLength, 
    int iPrecision, 
    int iScale, 
    int iCodePage
)
[<CLSCompliantAttribute(false)>]
abstract SetOutputColumnDataTypeProperties : 
        iOutputID:int * 
        iOutputColumnID:int * 
        eDataType:DataType * 
        iLength:int * 
        iPrecision:int * 
        iScale:int * 
        iCodePage:int -> unit 
[<CLSCompliantAttribute(false)>]
override SetOutputColumnDataTypeProperties : 
        iOutputID:int * 
        iOutputColumnID:int * 
        eDataType:DataType * 
        iLength:int * 
        iPrecision:int * 
        iScale:int * 
        iCodePage:int -> unit
public function SetOutputColumnDataTypeProperties(
    iOutputID : int, 
    iOutputColumnID : int, 
    eDataType : DataType, 
    iLength : int, 
    iPrecision : int, 
    iScale : int, 
    iCodePage : int
)

參數

  • iPrecision
    型別:System.Int32
    The total number of digits in the column.
  • iScale
    型別:System.Int32
    The number of digits of precision in the column.
  • iCodePage
    型別:System.Int32
    The code page of the column.

備註

This method is used to set the data type properties of an output column all at the same time. It exists because the properties depend on the values of the other properties in the method.

請參閱

參考

PipelineComponent 類別

Microsoft.SqlServer.Dts.Pipeline 命名空間