Share via


DTP_VARIANT Structure

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.

Namespace:  Microsoft.SqlServer.Dts.Runtime.Wrapper
Assembly:  Microsoft.SqlServer.DTSRuntimeWrap (in Microsoft.SqlServer.DTSRuntimeWrap.dll)

Syntax

'Declaration
Public Structure DTP_VARIANT
'Usage
Dim instance As DTP_VARIANT
public struct DTP_VARIANT
public value class DTP_VARIANT
[<SealedAttribute>]
type DTP_VARIANT =  struct end
JScript suports the use of structures, but not the declaration of new ones.

The DTP_VARIANT type exposes the following members.

Methods

  Name Description
Public method Equals (Inherited from ValueType.)
Public method GetHashCode (Inherited from ValueType.)
Public method GetType (Inherited from Object.)
Public method ToString (Inherited from ValueType.)

Top

Fields

  Name Description
Public field dwLength Represents an unsigned integer that contains the length of the data in the union.
Public field u Contains the data union.
Public field vt Represents an enumeration of the DataType.

Top

Remarks

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.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.SqlServer.Dts.Runtime.Wrapper Namespace