NetNamedPipeBindingElement.MaxConnections 属性

定义

获取或设置一个值,该值指定服务能够分别创建和接受的最大出站和入站连接数。Gets or sets a value that specifies the maximum number of outbound and inbound connections the service creates and accepts respectively.

public:
 property int MaxConnections { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("maxConnections", DefaultValue=Mono.Cecil.CustomAttributeArgument)]
[System.Configuration.IntegerValidator(MinValue=1)]
public int MaxConnections { get; set; }
[System.Configuration.ConfigurationProperty("maxConnections", DefaultValue=Mono.Cecil.CustomAttributeArgument)]
[System.Configuration.IntegerValidator(MinValue=0)]
public int MaxConnections { get; set; }
[<System.Configuration.ConfigurationProperty("maxConnections", DefaultValue=Mono.Cecil.CustomAttributeArgument)>]
[<System.Configuration.IntegerValidator(MinValue=1)>]
member this.MaxConnections : int with get, set
[<System.Configuration.ConfigurationProperty("maxConnections", DefaultValue=Mono.Cecil.CustomAttributeArgument)>]
[<System.Configuration.IntegerValidator(MinValue=0)>]
member this.MaxConnections : int with get, set
Public Property MaxConnections As Integer

属性值

Int32

服务能够分别创建和接受的最大出站和入站连接数。The maximum number of outbound and inbound connections the service creates and accepts respectively. 默认值为 10。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.

适用于