MessageQueueInstaller.BasePriority 属性

定义

获取或设置用于在网络上路由公共队列消息的基本优先级。Gets or sets the base priority that is used to route a public queue's messages over the network.

public:
 property short BasePriority { short get(); void set(short value); };
public short BasePriority { get; set; }
member this.BasePriority : int16 with get, set
Public Property BasePriority As Short

属性值

Int16

发送到公共队列的所有消息的单个基本优先级。The single base priority for all messages sent to the public queue. 默认值为零 (0)。The default is zero (0).

注解

BasePriority用于通过网络路由队列消息。The BasePriority is used for routing the queue's messages over the network. 使用为发送到 BasePriority 队列的消息提供比发送到其他队列的消息更高或较低的优先级。Use the BasePriority to give the messages sent to the queue a higher or lower priority than that for messages sent to other queues. 设置队列的基本优先级后,发送到该队列的所有消息的优先级高于基本优先级发送到队列的消息。When a queue's base priority is set, all the messages sent to it are given a higher priority than that of the messages sent to queues with a lower base priority. 队列的基本优先级对队列中的消息顺序或如何从队列中读取消息不起作用。The queue's base priority has no effect on the order of the messages in the queue or on how messages are read from the queue.

BasePriority仅适用于通过域控制器访问的公共队列 (换言之,使用公共格式名称) 。The BasePriority applies only to public queues that are accessed through the domain controller (in other words, using the public format name). 专用队列和直接访问的公共队列的基本优先级始终为零。The base priority of private queues and of directly accessed public queues is always zero.

适用于