MsmqIntegrationMessageProperty.Priority 属性

定义

获取或设置消息优先级,该优先级用于确定消息在队列中的位置。

public:
 property Nullable<System::Messaging::MessagePriority> Priority { Nullable<System::Messaging::MessagePriority> get(); void set(Nullable<System::Messaging::MessagePriority> value); };
public System.Messaging.MessagePriority? Priority { get; set; }
member this.Priority : Nullable<System.Messaging.MessagePriority> with get, set
Public Property Priority As Nullable(Of MessagePriority)

属性值

Nullable<MessagePriority>

消息优先级。 这些值由 MessagePriority 定义。

例外

该值不能为 null,并且不可在 MessagePriority 值的范围之内。

注解

“优先级”会影响消息队列 (MSMQ) 处理处于路由过程中的消息以及到达目标的消息的方式。 在路由过程中,优先级高的消息具有优先权,将会插入到目标队列的队首。 而具有相同优先级的消息则会按照到达的先后时间插入到队列中。

适用于