On this page
Specifies the data type of a field or parameter.
Syntax
Members
| Member | Description |
| Array | An array (BSON type 4). |
| Binary | Binary data (BSON type 5). |
| Boolean | A Boolean value (BSON type 8). |
| Code | JavaScript code (BSON type 13). |
| Date | A UTC date and time (BSON type 9). |
| DateTimeOffset | A DateTimeOffset stored as defined by the DateTimeOffset Format connection string parameter (see MongoDBDateTimeOffsetFormat); not a separate BSON type. |
| Decimal128 | A 128-bit decimal floating-point number (BSON type 19). |
| Double | A 64-bit floating-point number (BSON type 1). |
| Integer | A 32-bit integer (BSON type 16). |
| Long | A 64-bit integer (BSON type 18). |
| MaxKey | The BSON MaxKey value, which compares higher than all other values (127). |
| MinKey | The BSON MinKey value, which compares lower than all other values (-1). |
| Null | A a null reference (Nothing in Visual Basic) value (BSON type 10). |
| Object | An embedded document (BSON type 3). |
| Oid | An ObjectId (BSON type 7). |
| Regex | A regular expression (BSON type 11). |
| ScopeCode | JavaScript code with scope (BSON type 15). |
| String | A UTF-8 string (BSON type 2). |
| TimeStamp | A BSON timestamp (BSON type 17). |
| Uninitialized | The type is not set (0). |
| Uuid | A Guid stored as 16 bytes of binary data of subtype 4 or 3 (see MongoDBGuidFormat); not a separate BSON type. |
Inheritance Hierarchy
See Also