Επεξεργασία

Κοινή χρήση μέσω


MsmqMessageProperty.DeliveryStatus Property

Definition

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

public:
 property Nullable<System::ServiceModel::Channels::DeliveryStatus> DeliveryStatus { Nullable<System::ServiceModel::Channels::DeliveryStatus> get(); };
public System.ServiceModel.Channels.DeliveryStatus? DeliveryStatus { get; }
member this.DeliveryStatus : Nullable<System.ServiceModel.Channels.DeliveryStatus>
Public ReadOnly Property DeliveryStatus As Nullable(Of DeliveryStatus)

Property Value

A value from the DeliveryStatus enumeration that indicates the delivery status of the message. May be null.

Remarks

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.

Applies to