NetNamedPipeBinding.MaxConnections 屬性

定義

取得或設定允許具名管道繫結設定端點允許的連線數量上限,傳入和傳出都納入計算。

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

屬性值

此繫結允許之具名管道連線數量上限。 預設值是 10。

範例

下列範例會示範如何取得 MaxConnections 值。

int maxConnections = binding.MaxConnections;

備註

傳入連線數量上限與傳出連線數量上限設為相同的值。

適用於