語言

NetNamedPipeBindingElement.MaxConnections 屬性

定義

取得或設定一個值,指定服務所建立與接受的最大出站與入站連線數。

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

屬性值

服務所創造與接受的最大出站與入站連線數。 預設值為 10。

屬性

備註

進出連接會依此特性指定的獨立限制計算。 任何超過限制的連線都會被排隊,直到有空間低於限制。

適用於