QueuePolicy.MaxConcurrentReaders Property

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

Gets or sets the maximum number of concurrent readers.

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

Usage

    Dim instance As QueuePolicy
Dim value As Integer

value = instance.MaxConcurrentReaders

instance.MaxConcurrentReaders = value

Syntax

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

/** @property */
public void set_MaxConcurrentReaders (int value)
public function get MaxConcurrentReaders () : int

public function set MaxConcurrentReaders (value : int)

Property Value

Returns the maximum number of concurrent readers. The minimum value for this setting is 1; the default setting and maximum value is int.MaxValue. Contains the maximum number of concurrent readers.

Remarks

The Queue will only allow the specified number of concurrent readers. The typical use for this setting is to constrain the queue to a single reader and thus disallow concurrent access by setting the value to 1.

This policy setting is not supported by the Service Bus Queue in the current release.

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