Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MaxPendingConnections Property

ConnectionOrientedTransportBindingElement.MaxPendingConnections Property

Gets or sets the maximum number of connections awaiting dispatch on the service.

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

public int MaxPendingConnections { get; set; }
/** @property */
public int get_MaxPendingConnections ()

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

public function get MaxPendingConnections () : int

public function set MaxPendingConnections (value : int)

Not applicable.

Property Value

The maximum number of inbound connections awaiting dispatch on the service. The default value is 10.

Exception typeCondition

ArgumentOutOfRangeException

The value is less than or equal to zero.

This limits the number of simultaneous client connections awaiting dispatch. If this value is too low, client connection attempts may be rejected by the service. If it is too high, the service may appear slow or unresponsive to clients during heavy load periods. This property should be set to a value that allows the service to run at full capacity, and no higher.

When a higher layer in the stack calls AcceptDispatch, that connection is removed from the queue of connections awaiting dispatch.

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:
© 2015 Microsoft