DefaultPropertiesToSend.Priority Property

Definition

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

[System.Messaging.MessagingDescription("MsgPriority")]
public System.Messaging.MessagePriority Priority { get; set; }

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

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also