NetTcpBinding.MaxConnections 属性

定义

获取或设置一个值,该值控制客户端上可存入池中以备后续重复使用的最大连接数,以及服务器上可挂起调度的最大连接数。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.

public:
 property int MaxConnections { int get(); void set(int value); };
public int MaxConnections { get; set; }
member this.MaxConnections : int with get, set
Public Property MaxConnections As Integer

属性值

客户端上可存入池中以备后续重复使用的最大连接数;服务器上可挂起调度的最大连接数。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.

示例

此示例演示如何获取 MaxConnections 值。This example shows how to get the MaxConnections value.

int maxConnections = binding.MaxConnections;

注解

默认值为 10。The default value is 10.

适用于