MsmqMessageProperty.DeliveryStatus 属性

定义

DeliveryStatus 枚举中获取一个值,该值指示消息的传递状态。

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 枚举中的一个值,指示消息的传递状态。 可为 null

注解

消息的传递状态可为 InDoubtNotDelivered。 除非消息队列 (MSMQ) 可确定消息未传递,否则消息的传递状态为 InDoubt;如果确定消息未传递,传递状态将变为 NotDelivered

状态不明消息的一个示例是过期消息。 在消息过期之后,消息队列无法确定消息是否已传递到应用程序。

在从死信队列中读取消息时,将此属性与 DeliveryFailure 一起使用以确定消息传递失败的原因。

适用于