GuidRepresentation.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* Copyright 2010-2014 MongoDB Inc.
  2. *
  3. * Licensed under the Apache License, Version 2.0 (the "License");
  4. * you may not use this file except in compliance with the License.
  5. * You may obtain a copy of the License at
  6. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. *
  9. * Unless required by applicable law or agreed to in writing, software
  10. * distributed under the License is distributed on an "AS IS" BASIS,
  11. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. * See the License for the specific language governing permissions and
  13. * limitations under the License.
  14. */
  15. namespace MongoDB.Bson
  16. {
  17. /// <summary>
  18. /// Represents the representation to use when converting a Guid to a BSON binary value.
  19. /// </summary>
  20. public enum GuidRepresentation
  21. {
  22. /// <summary>
  23. /// The representation for Guids is unspecified, so conversion between Guids and Bson binary data is not possible.
  24. /// </summary>
  25. Unspecified = 0,
  26. /// <summary>
  27. /// Use the new standard representation for Guids (binary subtype 4 with bytes in network byte order).
  28. /// </summary>
  29. Standard,
  30. /// <summary>
  31. /// Use the representation used by older versions of the C# driver (including most community provided C# drivers).
  32. /// </summary>
  33. CSharpLegacy,
  34. /// <summary>
  35. /// Use the representation used by older versions of the Java driver.
  36. /// </summary>
  37. JavaLegacy,
  38. /// <summary>
  39. /// Use the representation used by older versions of the Python driver.
  40. /// </summary>
  41. PythonLegacy
  42. }
  43. }