This topic has not yet been rated - Rate this topic

MsmqElementBase.ReceiveErrorHandling Property

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

Namespace: System.ServiceModel.Configuration
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.

When this property is set to Fault, the channel listener is faulted and a ProtocolException (wrapping a MsmqPoisonMessageException) is traced and thrown. The offending message is left in the queue and needs to 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 offending message is simply dropped.

When this property is set to Reject, a negative acknowledgment is sent to the client and the offending message is removed from the poison-message queue. This option is available only on Message Queuing 4.0.

When set to Move, the offending message is moved to the final poison subqueue. This option is available only on Message Queuing 4.0.

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.