ServiceThrottlingElement.MaxConcurrentSessions Properti

Definisi

Mendapatkan atau menetapkan nilai yang menentukan jumlah maksimum koneksi bersamaan ke satu layanan.

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

Nilai Properti

Jumlah maksimum koneksi bersamaan ke satu layanan. Defaultnya adalah Int32.MaxValue.

Atribut

Keterangan

Layanan menerima koneksi melebihi batas. Namun, hanya saluran di bawah batas yang aktif dan pesan hanya dibaca dari saluran aktif. Mengatur properti ini ke 0 setara dengan mengaturnya ke MaxValue.

Berlaku untuk