NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

MessageQueue.BasePriority

Gets or sets a value indicating the base priority used to route a public queue's messages over the network.

[Visual Basic]
Overridable Public Property BasePriority As Short
[C#]
public short BasePriority {virtual get; virtual set;}
[C++]
public: __property virtual short get_BasePriority();
public: __property virtual void set_BasePriority(short);
[JScript]
public function get BasePriority() : Int16;
public function set BasePriority(Int16);

Property Value

The public queue's base priority. The default is 0.

Exceptions

Exception Type Condition
ArgumentException The base priority was set to an invalid value.
MessageQueueException The attempt to get or set the base priority generated an internal error on the message queue component. The error is specified by the given status message.

Remarks

The BasePriority property can be used to give messages sent to the specified queue a higher (or lower) priority than messages sent to other queues.

BasePriority specifies how a message is treated as it travels through the network. A message queue's BasePriority is not related to the Priority property of a message, which specifies the order in which an incoming message is placed in the queue.

See Also

MessageQueue Class | MessageQueue Members | System.Messaging Namespace