Export (0) Print
Expand All

ConnectionOrientedTransportBindingElement.MaxPendingAccepts Property

Gets or sets the maximum number of pending asynchronous accept operations that are available for processing incoming connections to the service.

Namespace: System.ServiceModel.Channels
Assembly: System.ServiceModel (in system.servicemodel.dll)

public int MaxPendingAccepts { get; set; }
/** @property */
public int get_MaxPendingAccepts ()

/** @property */
public void set_MaxPendingAccepts (int value)

public function get MaxPendingAccepts () : int

public function set MaxPendingAccepts (value : int)

Not applicable.

Property Value

The maximum number of connections the service can accept simultaneously. The default value is 1.

Exception typeCondition

ArgumentOutOfRangeException

The value is less than or equal to zero.

For scenarios with high levels of simultaneous connection initiations this value may be inadequate and should be adjusted along with the MaxPendingConnections property to handle higher levels of concurrent client connection attempts. It should not be necessary to set this property to a value greater than the number of processors present in the machine hosting the service.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft