MsmqIntegrationMessageProperty.Priority 属性

定义

获取或设置消息优先级,该优先级用于确定消息在队列中的位置。Gets or sets the message priority, which determines where in the queue the message is placed.

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>

消息优先级。The message priority. 这些值由 MessagePriority 定义。The values are defined by MessagePriority.

例外

该值不能为 null,并且不可在 MessagePriority 值的范围之内。The value is not null and is not within the range of MessagePriority values.

注解

“优先级”会影响消息队列 (MSMQ) 处理处于路由过程中的消息以及到达目标的消息的方式。Priority affects how Message Queuing (MSMQ) handles the message both while it is en route and once it reaches its destination. 在路由过程中,优先级高的消息具有优先权,将会插入到目标队列的队首。Higher-priority messages are given preference during routing and inserted toward the front of the destination queue. 而具有相同优先级的消息则会按照到达的先后时间插入到队列中。Messages with the same priority are placed in the queue according to their arrival time.

适用于