Priority Property (Message)
Gets or sets the message priority, which determines where in the queue the message is placed.
Syntax
'Declaration <ReadOnlyAttribute(True)> <DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)> <MessagingDescriptionAttribute("Message priority affects how MSMQ handles the message while it is in route, as well as where the message is placed in the queue.")> Public Property Priority As MessagePriority
'Usage Dim instance As Message Dim value As MessagePriority instance.Priority = value value = instance.Priority
[ReadOnly(true)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] [MessagingDescription("Message priority affects how MSMQ handles the message while it is in route, as well as where the message is placed in the queue.")] public MessagePriority Priority {get; set;}
[ReadOnly(true)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] [MessagingDescription("Message priority affects how MSMQ handles the message while it is in route, as well as where the message is placed in the queue.")] public: property MessagePriority Priority { MessagePriority get(); void set ( MessagePriority value); }
Property Value
One of the MessagePriority values, which represent the priority levels of non-transactional messages. The default is Normal.Exceptions
Exception | Description |
---|---|
System.InvalidOperationException | The message queue is filtered to ignore the Priority property. |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also