Επεξεργασία

Κοινή χρήση μέσω


DefaultPropertiesToSend.Priority Property

Definition

Gets or sets the message priority, which is used to determine where the message is placed in the queue.

public:
 property System::Messaging::MessagePriority Priority { System::Messaging::MessagePriority get(); void set(System::Messaging::MessagePriority value); };
[System.Messaging.MessagingDescription("MsgPriority")]
public System.Messaging.MessagePriority Priority { get; set; }
[<System.Messaging.MessagingDescription("MsgPriority")>]
member this.Priority : System.Messaging.MessagePriority with get, set
Public Property Priority As MessagePriority

Property Value

One of the MessagePriority enumeration values that represents the priority level of a non-transactional message. The default is Normal.

Attributes

Remarks

The Priority property affects how Message Queuing handles the message while it is en route, as well as where the message is placed in the queue when it reaches its destination. Higher priority messages are given preference during routing and inserted toward the front of the queue. Messages with the same priority are placed in the queue according to their arrival time.

Message priority can only be set meaningfully for non-transactional messages. The priority for transactional messages is automatically set to Lowest, which causes transactional message priority to be ignored.

Applies to

See also