Assembly: System.ServiceModel (in system.servicemodel.dll)
/** @property */ public ReceiveErrorHandling get_ReceiveErrorHandling () /** @property */ public void set_ReceiveErrorHandling (ReceiveErrorHandling value)
public function get ReceiveErrorHandling () : ReceiveErrorHandling public function set ReceiveErrorHandling (value : ReceiveErrorHandling)
Property ValueA 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 EditionThe Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.