Click or drag to resize

BsonType Enumeration

Represents the type of a BSON element.

Namespace:  MongoDB.Bson
Assembly:  MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.5.0+57.Branch.master.Sha.6a4e00a2d91090c65a9b11364b9ebfdb9c7da076
Syntax
[SerializableAttribute]
public enum BsonType
Members
  Member nameValueDescription
EndOfDocument0 Not a real BSON type. Used to signal the end of a document.
Double1 A BSON double.
String2 A BSON string.
Document3 A BSON document.
Array4 A BSON array.
Binary5 BSON binary data.
Undefined6 A BSON undefined value.
ObjectId7 A BSON ObjectId.
Boolean8 A BSON bool.
DateTime9 A BSON DateTime.
Null10 A BSON null value.
RegularExpression11 A BSON regular expression.
JavaScript13 BSON JavaScript code.
Symbol14 A BSON symbol.
JavaScriptWithScope15 BSON JavaScript code with a scope (a set of variables with values).
Int3216 A BSON 32-bit integer.
Timestamp17 A BSON timestamp.
Int6418 A BSON 64-bit integer.
Decimal12819 A BSON 128-bit decimal.
MinKey255 A BSON MinKey value.
MaxKey127 A BSON MaxKey value.
See Also