JsonOutputMode.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. using System;
  16. namespace MongoDB.Bson.IO
  17. {
  18. /// <summary>
  19. /// Represents the output mode of a JsonWriter.
  20. /// </summary>
  21. public enum JsonOutputMode
  22. {
  23. /// <summary>
  24. /// Output strict JSON.
  25. /// </summary>
  26. Strict,
  27. /// <summary>
  28. /// Use a format that can be pasted in to the MongoDB shell.
  29. /// </summary>
  30. Shell,
  31. /// <summary>
  32. /// Use JavaScript data types for some values.
  33. /// </summary>
  34. [Obsolete("Use Shell instead.")]
  35. JavaScript = Shell,
  36. /// <summary>
  37. /// Use JavaScript and MongoDB data types for some values.
  38. /// </summary>
  39. [Obsolete("Use Shell instead.")]
  40. TenGen = Shell
  41. }
  42. }