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.

.NET Framework
Available since 3.0
Return to top
Show: