Share via


ServiceThrottlingElement.MaxConcurrentSessions プロパティ

定義

1 つのサービスに対するコンカレント接続の最大数を指定する値を取得または設定します。

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

プロパティ値

1 つのサービスに対するコンカレント接続の最大数。 既定値は Int32.MaxValue です

属性

注釈

サービスは、制限を超える接続を受け入れます。 ただし、アクティブになるのは制限内のチャネルだけで、メッセージはアクティブ チャネルからのみ読み取られます。 このプロパティを 0 に設定することは、MaxValue に設定することと同じです。

適用対象