NetTcpBindingElement.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。

屬性

備註

傳入和傳出連線是依據此屬性指定的個別限制來計算的。 任何超過限制的連線都會排入佇列,直到低於此限制的空間可用為止。

適用於