NetTcpBinding.MaxConnections Property

 

Gets or sets a value that controls the maximum number of connections to be pooled for subsequent reuse on the client and the maximum number of connections allowed to be pending dispatch on the server.

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

public int MaxConnections { get; set; }

Property Value

Type: System.Int32

On the client, the maximum number of connections to be pooled for subsequent reuse; on the server, the maximum number of connections allowed to be pending dispatch.

The default value is 10.

This example shows how to get the MaxConnections value.

int maxConnections = binding.MaxConnections;

.NET Framework
Available since 3.0
Return to top
Show: