This topic has not yet been rated - Rate this topic

MsmqBindingBase.ReceiveErrorHandling Property

Gets or sets an enumeration value that specifies how poison messages are handled.

Namespace: System.ServiceModel
Assembly: System.ServiceModel (in system.servicemodel.dll)

public ReceiveErrorHandling ReceiveErrorHandling { get; set; }
/** @property */
public ReceiveErrorHandling get_ReceiveErrorHandling ()

/** @property */
public void set_ReceiveErrorHandling (ReceiveErrorHandling value)

public function get ReceiveErrorHandling () : ReceiveErrorHandling

public function set ReceiveErrorHandling (value : ReceiveErrorHandling)

Not applicable.

Property Value

A ReceiveErrorHandling value that specifies how poison and nondispatchable messages are handled.

A message in the queue becomes poisoned if repeated attempts to deliver the message has failed. Such a poison message is eventually handled based on the setting of this property. When this property is set to Fault, the listener is faulted and a MsmqPoisonMessageException is traced and thrown. The poison message is left in the queue and will need to be removed before more messages can be consumed from the queue. The MsmqPoisonMessageException contains a MessageLookupId that can be used to identify and manually remove the poison message from the queue.

When this property is set to Drop, the poison message is simply dropped.

When this property is set to Reject, a negative acknowledgement is sent to the client and the poison message is removed from the queue. This option is available only on Message Queuing 4.0 (requires Windows Vista).

When set to Move, the poison message is moved to the final poison subqueue. This option is only available on Message Queuing 4.0 (requires Windows Vista).

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.