NetTcpBindingElement.MaxConnections Property

 

Gets or sets a value that specifies the maximum number of outbound and inbound connections the service creates and accepts respectively.

Namespace:   System.ServiceModel.Configuration
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

[ConfigurationPropertyAttribute("maxConnections", DefaultValue = 0)]
[IntegerValidatorAttribute(MinValue = 0)]
public int MaxConnections { get; set; }

Property Value

Type: System.Int32

The maximum number of outbound and inbound connections the service creates and accepts respectively. The default is 10.

Incoming and outgoing connections are counted against a separate limit specified by this property. Any connection in excess of the limit is queued until a space below the limit becomes available.

.NET Framework
Available since 3.0
Return to top
Show: