Click or drag to resize

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.16.0+eeafbea0921243a5868b81984e1083a07c1f75bc
Syntax
[SerializableAttribute]
public enum GuidRepresentation
Members
  Member nameValueDescription
Unspecified0 The representation for Guids is unspecified, so conversion between Guids and Bson binary data is not possible.
Standard1 Use the new standard representation for Guids (binary subtype 4 with bytes in network byte order).
CSharpLegacy2 Use the representation used by older versions of the C# driver (including most community provided C# drivers).
JavaLegacy3 Use the representation used by older versions of the Java driver.
PythonLegacy4 Use the representation used by older versions of the Python driver.
See Also