Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

NetNamedPipeBinding::MaxConnections Property

 

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:
property int MaxConnections {
	int get();
	void set(int value);
}

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
Show:
© 2017 Microsoft