System.Messaging Reference (Document! X Sample)
Priority Property (Message)



System.Messaging Namespace > Message Class : Priority Property
Gets or sets the message priority, which determines where in the queue the message is placed.
Syntax
'Declaration
 
Public Property Priority As MessagePriority
'Usage
 
Dim instance As Message
Dim value As MessagePriority
 
instance.Priority = value
 
value = instance.Priority
public MessagePriority Priority {get; set;}
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
ExceptionDescription
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

Reference

Message Class
Message Members