This documentation is archived and is not being maintained.

MsmqMessageProperty.DeliveryStatus Property

Gets a value from the DeliveryStatus enumeration that indicates the delivery status of the message.

Namespace:  System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public Nullable<DeliveryStatus> DeliveryStatus { get; }

Property Value

Type: System.Nullable<DeliveryStatus>
A value from the DeliveryStatus enumeration that indicates the delivery status of the message. May be null.

A message may have a delivery status of InDoubt or NotDelivered. A message has a delivery status of InDoubt unless Message Queuing (MSMQ) can determine that it was not delivered, in which case its delivery status becomes NotDelivered.

An example of an in-doubt message is a message that has expired. Message Queuing cannot determine whether the message was delivered to the application after it expired.

Use this property together with DeliveryFailure when reading a message from a dead-letter queue to determine why the message failed delivery.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0
Show: