GuidRepresentation Enumeration |
Represents the representation to use when converting a Guid to a BSON binary value.
Namespace:
MongoDB.Bson
Assembly:
MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.7.3+Branch.v2.7.x.Sha.2f1f2be13a23b8520cb9c2ee8439c022f9a03efe
Syntax [SerializableAttribute]
public enum GuidRepresentation
<SerializableAttribute>
Public Enumeration GuidRepresentation
[<SerializableAttribute>]
type GuidRepresentation
Members
| Member name | Value | Description |
---|
| Unspecified | 0 |
The representation for Guids is unspecified, so conversion between Guids and Bson binary data is not possible.
|
| Standard | 1 |
Use the new standard representation for Guids (binary subtype 4 with bytes in network byte order).
|
| CSharpLegacy | 2 |
Use the representation used by older versions of the C# driver (including most community provided C# drivers).
|
| JavaLegacy | 3 |
Use the representation used by older versions of the Java driver.
|
| PythonLegacy | 4 |
Use the representation used by older versions of the Python driver.
|
See Also