System.Messaging Reference (Document! X Sample)
System.Messaging Namespace / MessageQueue Class / BasePriority Property



In This Topic
    BasePriority Property (MessageQueue)
    In This Topic
    Gets or sets the base priority Message Queuing uses to route a public queue's messages over the network.
    Syntax
    'Declaration
     
    
    Public Property BasePriority As Short
    'Usage
     
    
    Dim instance As MessageQueue
    Dim value As Short
     
    instance.BasePriority = value
     
    value = instance.BasePriority
    public short BasePriority {get; set;}
    public:
    property short BasePriority {
       short get();
       void set (    short value);
    }

    Property Value

    The single base priority for all messages sent to the (public) queue. The default is zero (0).
    Exceptions
    ExceptionDescription
    The base priority was set to an invalid value.
    An error occurred when accessing a Message Queuing method.
    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