MsmqBindingElementBase.ReceiveErrorHandling Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets an enumeration value that specifies how poison and other messages that cannot be dispatched are handled.
public:
property System::ServiceModel::ReceiveErrorHandling ReceiveErrorHandling { System::ServiceModel::ReceiveErrorHandling get(); void set(System::ServiceModel::ReceiveErrorHandling value); };
public System.ServiceModel.ReceiveErrorHandling ReceiveErrorHandling { get; set; }
member this.ReceiveErrorHandling : System.ServiceModel.ReceiveErrorHandling with get, set
Public Property ReceiveErrorHandling As ReceiveErrorHandling
Property Value
A ReceiveErrorHandling value that specifies how poison and other messages that cannot be dispatched are handled.
Exceptions
The value is not within the range of values defined in ReceiveErrorHandling.
Remarks
When this property is set to Fault, the channel listener is faulted and a ProtocolException (wrapping a MsmqPoisonMessageException) is traced and thrown. The message is left in the queue and must be removed by some manual method. The MsmqPoisonMessageException contains a MessageLookupId that can be used to identify and manually remove the offending message from the poison-message queue.
When this property is set to Drop, the message is dropped.
When this property is set to Reject, a negative acknowledgment is sent to the client and the message is removed from the poison-message queue. This option is available only on Message Queuing 4.0.
When set to Move, the message is moved to the final poison sub-queue. This option is available only on Message Queuing 4.0.
Applies to
Зворотний зв’язок
https://aka.ms/ContentUserFeedback.
Очікується незабаром: протягом 2024 року ми будемо припиняти використання механізму реєстрації проблем у GitHub для зворотного зв’язку щодо вмісту й замінювати його новою системою зворотного зв’язку. Докладніше:Надіслати й переглянути відгук про