NetNamedPipeBinding.MaxConnections Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets or sets the maximum number of connections, both inbound and outbound, that are allowed to endpoints configured with the named pipe binding.

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

public int MaxConnections { get; set; }

Property Value

Type: System.Int32

The maximum number of named pipe connections that are allowed with this binding. The default value is 10.

The maximum number of inbound and the maximum number of outbound connections are set to the same value.

The following example shows how to get the MaxConnections values.

int maxConnections = binding.MaxConnections;

.NET Framework
Available since 3.0
Return to top