System.Messaging Reference (Document! X Sample)
MaximumQueueSize Property (MessageQueue)



System.Messaging Namespace > MessageQueue Class : MaximumQueueSize Property
Gets or sets the maximum size of the queue.
Syntax
'Declaration
 
Public Property MaximumQueueSize As Long
'Usage
 
Dim instance As MessageQueue
Dim value As Long
 
instance.MaximumQueueSize = value
 
value = instance.MaximumQueueSize
public long MaximumQueueSize {get; set;}
public:
property int64 MaximumQueueSize {
   int64 get();
   void set (    int64 value);
}

Property Value

The maximum size, in kilobytes, of the queue. The Message Queuing default specifies that no limit exists.
Exceptions
ExceptionDescription
The maximum queue size contains a negative 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

Reference

MessageQueue Class
MessageQueue Members