DTP_VARIANT 結構
Specifies the data type of the column. This is a value from the DataType enumeration that determines the type of DTP_VARIANT structure stored in each cell of this column.
命名空間: Microsoft.SqlServer.Dts.Runtime.Wrapper
組件: Microsoft.SqlServer.DTSRuntimeWrap (在 Microsoft.SqlServer.DTSRuntimeWrap.dll 中)
語法
'宣告
Public Structure DTP_VARIANT
'用途
Dim instance As DTP_VARIANT
public struct DTP_VARIANT
public value class DTP_VARIANT
[<SealedAttribute>]
type DTP_VARIANT = struct end
JScript 支援結構的使用,但不支援結構的宣告。
DTP_VARIANT 型別公開下列成員。
方法
名稱 | 說明 | |
---|---|---|
Equals | (繼承自 ValueType。) | |
Finalize | (繼承自 Object。) | |
GetHashCode | (繼承自 ValueType。) | |
GetType | (繼承自 Object。) | |
MemberwiseClone | (繼承自 Object。) | |
ToString | (繼承自 ValueType。) |
上層
欄位
名稱 | 說明 | |
---|---|---|
dwLength | Represents an unsigned integer that contains the length of the data in the union. | |
u | Contains the data union. | |
vt | Represents an enumeration of the DataType. |
上層
備註
This structure is used by the pipeline to determine column information. When a component calls the GetData method, the last parameter is the returned column data, in a DTP_VARIANT structure. The data union is the union of the different types supported by the pipeline, such as Long, String, wstring, decimal, numeric, and so on, and it contains the column data. The DataType is the datatype of the column data, and it tells which part of the union to use. The length specifies the length of the data in the union.
執行緒安全性
這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。