Compartir a través de


Estructura 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.

Espacio de nombres:  Microsoft.SqlServer.Dts.Runtime.Wrapper
Ensamblado:  Microsoft.SqlServer.DTSRuntimeWrap (en Microsoft.SqlServer.DTSRuntimeWrap.dll)

Sintaxis

'Declaración
Public Structure DTP_VARIANT
'Uso
Dim instance As DTP_VARIANT
public struct DTP_VARIANT
public value class DTP_VARIANT
[<SealedAttribute>]
type DTP_VARIANT =  struct end
JScript admite el uso de estructuras, pero no la declaración de otras nuevas.

El tipo DTP_VARIANT expone los siguientes miembros.

Métodos

  Nombre Descripción
Método público Equals (Se hereda de ValueType.)
Método protegido Finalize (Se hereda de Object.)
Método público GetHashCode (Se hereda de ValueType.)
Método público GetType (Se hereda de Object.)
Método protegido MemberwiseClone (Se hereda de Object.)
Método público ToString (Se hereda de ValueType.)

Arriba

Campos

  Nombre Descripción
Campo público dwLength Represents an unsigned integer that contains the length of the data in the union.
Campo público u Contains the data union.
Campo público vt Represents an enumeration of the DataType.

Arriba

Comentarios

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.

Seguridad para subprocesos

Cualquier miembro público static (Shared en Visual Basic) de este tipo es seguro para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.