MsmqMessageProperty.DeliveryStatus 属性

定义

DeliveryStatus 枚举中获取一个值,该值指示消息的传递状态。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)

属性值

Nullable<DeliveryStatus>

DeliveryStatus 枚举中的一个值,指示消息的传递状态。A value from the DeliveryStatus enumeration that indicates the delivery status of the message. 可为 nullMay be null.

注解

消息的传递状态可为 InDoubtNotDeliveredA message may have a delivery status of InDoubt or NotDelivered. 除非消息队列 (MSMQ) 可确定消息未传递,否则消息的传递状态为 InDoubt;如果确定消息未传递,传递状态将变为 NotDeliveredA 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.

在从死信队列中读取消息时,将此属性与 DeliveryFailure 一起使用以确定消息传递失败的原因。Use this property together with DeliveryFailure when reading a message from a dead-letter queue to determine why the message failed delivery.

适用于