GridFSDownloadOptions.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* Copyright 2015-present 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.Driver.GridFS
  16. {
  17. /// <summary>
  18. /// Represents options for a GridFS download operation.
  19. /// </summary>
  20. public class GridFSDownloadOptions
  21. {
  22. // fields
  23. private bool? _checkMD5;
  24. private bool? _seekable;
  25. // properties
  26. /// <summary>
  27. /// Gets or sets a value indicating whether to check the MD5 value.
  28. /// </summary>
  29. /// <value>
  30. /// <c>true</c> if the MD5 value should be checked; otherwise, <c>false</c>.
  31. /// </value>
  32. public bool? CheckMD5
  33. {
  34. get { return _checkMD5; }
  35. set { _checkMD5 = value; }
  36. }
  37. /// <summary>
  38. /// Gets or sets a value indicating whether the returned Stream supports seeking.
  39. /// </summary>
  40. /// <value>
  41. /// <c>true</c> if the returned Stream supports seeking; otherwise, <c>false</c>.
  42. /// </value>
  43. public bool? Seekable
  44. {
  45. get { return _seekable; }
  46. set { _seekable = value; }
  47. }
  48. }
  49. }