Condividi tramite


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

Spazio dei nomi  Microsoft.SqlServer.Dts.Runtime.Wrapper
Assembly:  Microsoft.SqlServer.DTSRuntimeWrap (in Microsoft.SqlServer.DTSRuntimeWrap.dll)

Sintassi

'Dichiarazione
Public Structure DTP_VARIANT
'Utilizzo
Dim instance As DTP_VARIANT
public struct DTP_VARIANT
public value class DTP_VARIANT
[<SealedAttribute>]
type DTP_VARIANT =  struct end
JScript supporta l'utilizzo di strutture, ma non la dichiarazione di nuove strutture.

Nel tipo DTP_VARIANT sono esposti i membri seguenti.

Metodi

  Nome Descrizione
Metodo pubblico Equals Ereditato da ValueType.
Metodo protetto Finalize Ereditato da Object.
Metodo pubblico GetHashCode Ereditato da ValueType.
Metodo pubblico GetType Ereditato da Object.
Metodo protetto MemberwiseClone Ereditato da Object.
Metodo pubblico ToString Ereditato da ValueType.

In alto

Campi

  Nome Descrizione
Campo pubblico dwLength Represents an unsigned integer that contains the length of the data in the union.
Campo pubblico u Contains the data union.
Campo pubblico vt Represents an enumeration of the DataType.

In alto

Osservazioni

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.

Protezione dei thread

I membri static (Shared in Visual Basic) pubblici di questo tipo sono affidabili. Non è invece garantita la sicurezza dei membri dell'istanza.