Structure 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.
Espace de noms : Microsoft.SqlServer.Dts.Runtime.Wrapper
Assembly : Microsoft.SqlServer.DTSRuntimeWrap (en Microsoft.SqlServer.DTSRuntimeWrap.dll)
Syntaxe
'Déclaration
Public Structure DTP_VARIANT
'Utilisation
Dim instance As DTP_VARIANT
public struct DTP_VARIANT
public value class DTP_VARIANT
[<SealedAttribute>]
type DTP_VARIANT = struct end
JScript prend en charge l'utilisation de structures, mais pas la déclaration de nouvelles structures.
Le type DTP_VARIANT expose les membres suivants.
Méthodes
Nom | Description | |
---|---|---|
Equals | (hérité de ValueType.) | |
Finalize | (hérité de Object.) | |
GetHashCode | (hérité de ValueType.) | |
GetType | (hérité de Object.) | |
MemberwiseClone | (hérité de Object.) | |
ToString | (hérité de ValueType.) |
Haut de la page
Champs
Nom | Description | |
---|---|---|
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. |
Haut de la page
Notes
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.
Sécurité des threads
Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.