Acknowledgement.cs 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. //------------------------------------------------------------------------------
  2. // <copyright file="Acknowledgement.cs" company="Microsoft">
  3. // Copyright (c) Microsoft Corporation. All rights reserved.
  4. // </copyright>
  5. //------------------------------------------------------------------------------
  6. using Experimental.System.Messaging.Interop;
  7. namespace Experimental.System.Messaging
  8. {
  9. /// <include file='doc\Acknowledgement.uex' path='docs/doc[@for="Acknowledgment"]/*' />
  10. /// <devdoc>
  11. /// <para>
  12. /// Specifies what went wrong (or right) during a Message
  13. /// Queuing operation. This is the type of a property of an acknowledgement
  14. /// message.
  15. /// </para>
  16. /// </devdoc>
  17. public enum Acknowledgment
  18. {
  19. /// <include file='doc\Acknowledgement.uex' path='docs/doc[@for="Acknowledgment.None"]/*' />
  20. /// <devdoc>
  21. /// <para>
  22. /// The default value of the <see cref='System.Messaging.Acknowledgment'/>
  23. /// property. This means the message is
  24. /// not an acknowledgment message.
  25. /// </para>
  26. /// </devdoc>
  27. None = 0,
  28. /// <include file='doc\Acknowledgement.uex' path='docs/doc[@for="Acknowledgment.AccessDenied"]/*' />
  29. /// <devdoc>
  30. /// The sending application does not have access rights
  31. /// to the destination queue.
  32. /// </devdoc>
  33. AccessDenied = NativeMethods.MESSAGE_CLASS_ACCESS_DENIED,
  34. /// <include file='doc\Acknowledgement.uex' path='docs/doc[@for="Acknowledgment.BadDestinationQueue"]/*' />
  35. /// <devdoc>
  36. /// The destination queue is not available to the sending
  37. /// application.
  38. /// </devdoc>
  39. BadDestinationQueue = NativeMethods.MESSAGE_CLASS_BAD_DESTINATION_QUEUE,
  40. /// <include file='doc\Acknowledgement.uex' path='docs/doc[@for="Acknowledgment.BadEncryption"]/*' />
  41. /// <devdoc>
  42. /// The destination Queue Manager could not decrypt a private
  43. /// (encrypted) message.
  44. /// </devdoc>
  45. BadEncryption = NativeMethods.MESSAGE_CLASS_BAD_ENCRYPTION,
  46. /// <include file='doc\Acknowledgement.uex' path='docs/doc[@for="Acknowledgment.BadSignature"]/*' />
  47. /// <devdoc>
  48. /// MSMQ could not authenticate the original message. The original
  49. /// message's digital signature is not valid.
  50. /// </devdoc>
  51. BadSignature = NativeMethods.MESSAGE_CLASS_BAD_SIGNATURE,
  52. /// <include file='doc\Acknowledgement.uex' path='docs/doc[@for="Acknowledgment.CouldNotEncrypt"]/*' />
  53. /// <devdoc>
  54. /// The source Queue Manager could not encrypt a private message.
  55. /// </devdoc>
  56. CouldNotEncrypt = NativeMethods.MESSAGE_CLASS_COULD_NOT_ENCRYPT,
  57. /// <include file='doc\Acknowledgement.uex' path='docs/doc[@for="Acknowledgment.HopCountExceeded"]/*' />
  58. /// <devdoc>
  59. /// The original message's hop count is exceeded.
  60. /// </devdoc>
  61. HopCountExceeded = NativeMethods.MESSAGE_CLASS_HOP_COUNT_EXCEEDED,
  62. /// <include file='doc\Acknowledgement.uex' path='docs/doc[@for="Acknowledgment.NotTransactionalQueue"]/*' />
  63. /// <devdoc>
  64. /// A transaction message was sent to a non-transaction
  65. /// queue.
  66. /// </devdoc>
  67. NotTransactionalQueue = NativeMethods.MESSAGE_CLASS_NOT_TRANSACTIONAL_QUEUE,
  68. /// <include file='doc\Acknowledgement.uex' path='docs/doc[@for="Acknowledgment.NotTransactionalMessage"]/*' />
  69. /// <devdoc>
  70. /// A non-transaction message was sent to a transaction
  71. /// queue.
  72. /// </devdoc>
  73. NotTransactionalMessage = NativeMethods.MESSAGE_CLASS_NOT_TRANSACTIONAL_MESSAGE,
  74. /// <include file='doc\Acknowledgement.uex' path='docs/doc[@for="Acknowledgment.Purged"]/*' />
  75. /// <devdoc>
  76. /// The message was purged before reaching the destination
  77. /// queue.
  78. /// </devdoc>
  79. Purged = NativeMethods.MESSAGE_CLASS_PURGED,
  80. /// <include file='doc\Acknowledgement.uex' path='docs/doc[@for="Acknowledgment.QueueDeleted"]/*' />
  81. /// <devdoc>
  82. /// The queue was deleted before the message could be read
  83. /// from the queue.
  84. /// </devdoc>
  85. QueueDeleted = NativeMethods.MESSAGE_CLASS_QUEUE_DELETED,
  86. /// <include file='doc\Acknowledgement.uex' path='docs/doc[@for="Acknowledgment.QueueExceedMaximumSize"]/*' />
  87. /// <devdoc>
  88. /// The original message's destination queue is full.
  89. /// </devdoc>
  90. QueueExceedMaximumSize = NativeMethods.MESSAGE_CLASS_QUEUE_EXCEED_QUOTA,
  91. /// <include file='doc\Acknowledgement.uex' path='docs/doc[@for="Acknowledgment.QueuePurged"]/*' />
  92. /// <devdoc>
  93. /// The queue was purged and the message no longer exists.
  94. /// </devdoc>
  95. QueuePurged = NativeMethods.MESSAGE_CLASS_QUEUE_PURGED,
  96. /// <include file='doc\Acknowledgement.uex' path='docs/doc[@for="Acknowledgment.ReachQueue"]/*' />
  97. /// <devdoc>
  98. /// The original message reached its destination queue.
  99. /// </devdoc>
  100. ReachQueue = NativeMethods.MESSAGE_CLASS_REACH_QUEUE,
  101. /// <include file='doc\Acknowledgement.uex' path='docs/doc[@for="Acknowledgment.ReachQueueTimeout"]/*' />
  102. /// <devdoc>
  103. /// Either the time-to-reach-queue or time-to-be-received timer
  104. /// expired before the original message could reach the destination queue.
  105. /// </devdoc>
  106. ReachQueueTimeout = NativeMethods.MESSAGE_CLASS_REACH_QUEUE_TIMEOUT,
  107. /// <include file='doc\Acknowledgement.uex' path='docs/doc[@for="Acknowledgment.ReceiveTimeout"]/*' />
  108. /// <devdoc>
  109. /// The original message was not removed from the queue before
  110. /// its time-to-be-received timer expired.
  111. /// </devdoc>
  112. ReceiveTimeout = NativeMethods.MESSAGE_CLASS_RECEIVE_TIMEOUT,
  113. /// <include file='doc\Acknowledgement.uex' path='docs/doc[@for="Acknowledgment.Receive"]/*' />
  114. /// <devdoc>
  115. /// The original message was retrieved by the receiving
  116. /// application.
  117. /// </devdoc>
  118. Receive = NativeMethods.MESSAGE_CLASS_RECEIVE,
  119. }
  120. }