Data Types

Data types define the format that data is stored in and displayed as for variables, specifications, and other resources.

The following table describes the simple and complex data types that are supported.

Note: Some data types are not available for some model properties or resource variables.
Data Type Name Definition
Boolean (bool) Boolean Represents the simplest data type. Booleans can have one of two values: 0 or 1. This may be displayed as True/False, On/Off, Yes/No, and so on.
Byte (byte) Unsigned 8-bit integer Stores positive 8-bit values, represented as integers from 0 through 255.
Byte[] (byte[]) BLOB (binary large object) A collection of binary data stored as a single entity in a database management system.
Data Table (DataTable) Data Table An on-screen display of information in a database management system, in a column format, with field names at the top.
DateTime (DateTime) Date Time Represents an instance in history, from year through millisecond. DateTime fields range in value from 12:00:00 midnight January 1, 0001 to 11:59:59 December 31, 9999.
Double (double) Double Precision Float (64 bits) Values range from -1.79769313486232e308 through 1.797679313486232e308, as well as positive or negative zero (PositiveInfinity and NegativeInfinity) and not a number (NaN).
Important: Doubles can maintain only 15 digits of precision.
GUID GUID (globally unique identifier) 128-bit integer that can be used wherever a unique identifier is required.
Int116 (short) Signed 16-bit Integer Values range from -32,768 through 32,767.
Int32 (int) Signed 32-bit Integer Values range from -2,147,483,648 through 2,147,483,647.
Int64 (long) Signed 64-bit Integer Values range from -9,223,372,036,854,775,808 through 9,223,372,036,854,775,807.
UInt16 (ushort) Unsigned 16-bit Integer Values range from 0 through 65535.
UInt32 (uint) Unsigned 32-bit integer Values range from 0 through 4,294,967,295.
SByte (SByte) Signed 8-bit integer Values range from -128 through 127.
Single (float) Single Precision Float (32 bits) Values range from -3.402823e38 to 3.402823e38, as well as positive or negative zero (PositiveInfinity and NegativeInfinity) and not a number (NaN).
Important: Singles can maintain only 7 digits of precision.
Nullable Int64 Nullable 64-bit Integer Allows a value of NULL or a signed 64-bit integer.
Nullable Double Nullable Double Precision Float Allows a value of NULL or a double precision float.
String (string) String Represents a sequential collection of Unicode characters used to represent text.
TimeSpan (timespan) Time Interval Contains a Start Time and a Duration (specified by a single number), which can be defined by: year, month, day, hour, minute, second, and millisecond (decimal).
Object (object) Object Represents undeclared variables and variables declared without a data type.