Represents the type of a BSON element.
Namespace: MongoDB.BsonAssembly: MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.2.0
Syntax [SerializableAttribute]
public enum BsonType
<SerializableAttribute>
Public Enumeration BsonType
[<SerializableAttribute>]
type BsonType
Members
| Member name | Value | Description |
---|
| EndOfDocument | 0 |
Not a real BSON type. Used to signal the end of a document.
|
| Double | 1 |
A BSON double.
|
| String | 2 |
A BSON string.
|
| Document | 3 |
A BSON document.
|
| Array | 4 |
A BSON array.
|
| Binary | 5 |
BSON binary data.
|
| Undefined | 6 |
A BSON undefined value.
|
| ObjectId | 7 |
A BSON ObjectId.
|
| Boolean | 8 |
A BSON bool.
|
| DateTime | 9 |
A BSON DateTime.
|
| Null | 10 |
A BSON null value.
|
| RegularExpression | 11 |
A BSON regular expression.
|
| JavaScript | 13 |
BSON JavaScript code.
|
| Symbol | 14 |
A BSON symbol.
|
| JavaScriptWithScope | 15 |
BSON JavaScript code with a scope (a set of variables with values).
|
| Int32 | 16 |
A BSON 32-bit integer.
|
| Timestamp | 17 |
A BSON timestamp.
|
| Int64 | 18 |
A BSON 64-bit integer.
|
| MinKey | 255 |
A BSON MinKey value.
|
| MaxKey | 127 |
A BSON MaxKey value.
|
See Also