This documentation is archived and is not being maintained.

DefaultPropertiesToSend.Priority Property

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

Namespace:  System.Messaging
Assembly:  System.Messaging (in System.Messaging.dll)

[MessagingDescriptionAttribute("MsgPriority")]
public MessagePriority Priority { get; set; }

Property Value

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

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.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: