DataType Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the data type of a DataItem.
public enum DataType
type DataType =
Public Enum DataType
- Inheritance
-
DataType
Fields
Name | Value | Description |
---|---|---|
Automatic | 1 | Internal usage only. |
String | 2 | A null-terminated Unicode string; this maps to String, as well as DBTYPE_WSTR. |
Int8 | 3 | An 8-bit signed integer; this maps to SByte, as well as DBTYPE_I1. |
Int16 | 4 | A 16-bit signed integer; this maps to Int16, as well as DBTYPE_I2. |
Int32 | 5 | A 32-bit signed integer; this maps to Int32, as well as DBTYPE_I4. |
Int64 | 6 | A 64-bit signed integer; this maps to Int64, as well as DBTYPE_I8. |
Single | 7 | A floating-point number within the range of -3.40E38 through 3.40E38; this maps to Single, as well as DBTYPE_R4. |
Double | 8 | A floating-point number within the range of -1.79E308 through 1.79E308; this maps to Double, as well as DBTYPE_R8. |
DateTime | 9 | Date data, stored as a double, when the whole portion is the number of days since December 30, 1899, and the fractional portion is a fraction of a day; this maps to DateTime, as well as DBTYPE_DATE. |
Decimal | 10 | A fixed precision and scale numeric value between -10E38 -1 and 10E38 -1; this maps to Decimal, as well as DBTYPE_DECIMAL, DBTYPE_CY. |
Boolean | 11 | A Boolean value; this maps to Boolean, as well as DBTYPE_BOOL. |
Byte | 12 | A 8-bit unsigned integer; this maps to Byte, as well as DBTYPE_UI1. |
UInt16 | 13 | A 16-bit unsigned integer; this maps to UInt16, as well as DBTYPE_UI2. |
UInt32 | 14 | A 32-bit unsigned integer; this maps to UInt32, as well as DBTYPE_UI4. |
UInt64 | 15 | A 64-bit unsigned integer; this maps to UInt64, as well as DBTYPE_UI8. |
Binary | 17 | A stream of binary data; this maps to an Array of type Byte, as well as DBTYPE_BYTES. |
Unknown | 19 | Unknown or no value, this maps to DBTYPE_EMPTY. |
Variant | 20 | A varying data that can contain numeric, string, binary, or date data, and also the special values Empty and Null; this maps to Object, as well as DBTYPE_VARIANT. |