CManagedComponentWrapperClass.SetOutputColumnDataTypeProperties 方法

定義

public:
 virtual void SetOutputColumnDataTypeProperties(int lOutputID, int lOutputColumnID, Microsoft::SqlServer::Dts::Runtime::Wrapper::Sql2012::DataType eDataType, int lLength, int lPrecision, int lScale, int lCodePage) = Microsoft::SqlServer::Dts::Pipeline::Wrapper::Sql2012::IDTSDesigntimeComponent100::SetOutputColumnDataTypeProperties;
[System.Runtime.InteropServices.DispId(32)]
public virtual void SetOutputColumnDataTypeProperties(int lOutputID, int lOutputColumnID, Microsoft.SqlServer.Dts.Runtime.Wrapper.Sql2012.DataType eDataType, int lLength, int lPrecision, int lScale, int lCodePage);
[<System.Runtime.InteropServices.DispId(32)>]
abstract member SetOutputColumnDataTypeProperties : int * int * Microsoft.SqlServer.Dts.Runtime.Wrapper.Sql2012.DataType * int * int * int * int -> unit
override this.SetOutputColumnDataTypeProperties : int * int * Microsoft.SqlServer.Dts.Runtime.Wrapper.Sql2012.DataType * int * int * int * int -> unit
Public Overridable Sub SetOutputColumnDataTypeProperties (lOutputID As Integer, lOutputColumnID As Integer, eDataType As DataType, lLength As Integer, lPrecision As Integer, lScale As Integer, lCodePage As Integer)

參數

lOutputID
Int32
lOutputColumnID
Int32
eDataType
DataType
lLength
Int32
lPrecision
Int32
lScale
Int32
lCodePage
Int32

實作

屬性

備註

輸出欄位的資料型態屬性彼此依賴,並要求根據欄位的資料型態遵循特定規則。 此方法使元件能同時設定所有屬性來強制執行這些規則。

下表列出設定輸出欄位資料型別屬性時適用的規則。

資料類型 長度 調整 Precision CodePage
DT_小數 0 大於 0,且小於或等於 28。 0 0
DT_CY 0 0 0 0
DT_NUMERIC 0 大於 0,且小於或等於 28,且低於精確度。 大於或等於 1,且小於或等於 38。 0
DT_BYTES 大於 0。 0 0 0
DT_STR 大於 0 且小於 8000。 0 0 非 0,並為有效的字碼頁。
DT_TEXT 大於 0 且小於 8000。 0 0 非 0,並為有效的字碼頁。
DT_WSTR 大於 0,且小於 4000。 0 0 0

適用於