QueuePolicy.MaxQueueLength Property

[This is prerelease documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Gets or sets the maximum queue length.

Namespace: Microsoft.ServiceBus
Assembly: Microsoft.ServiceBus (in microsoft.servicebus.dll)

Usage

    Dim instance As QueuePolicy
Dim value As Integer

value = instance.MaxQueueLength

instance.MaxQueueLength = value

Syntax

'Declaration
Public Property MaxQueueLength As Integer
public int MaxQueueLength { get; set; }
public:
property int MaxQueueLength {
    int get ();
    void set (int value);
}
/** @property */
public int get_MaxQueueLength ()

/** @property */
public void set_MaxQueueLength (int value)
public function get MaxQueueLength () : int

public function set MaxQueueLength (value : int)

Property Value

Returns Int32. Contains the maximum queue length.

Remarks

MaxQueueLength is not enforced by the Service Bus Queue in the current release.

MaxQueueLength specifies how many messages may be held in a Queue at any given time. Once the maximum queue length is exceeded, any additionally enqueued messages are handled according to the EnqueueTimeout and OverflowPolicy policy settings.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003 , Windows Server 2008, and Windows 2000

Target Platforms

See Also

Reference

QueuePolicy Class
QueuePolicy Members
Microsoft.ServiceBus Namespace