Bagikan melalui


ProcessModelSection.ClientConnectedCheck Properti

Definisi

Mendapatkan atau menetapkan nilai yang menunjukkan berapa lama permintaan dibiarkan dalam antrean.

public:
 property TimeSpan ClientConnectedCheck { TimeSpan get(); void set(TimeSpan value); };
[System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteTimeSpanConverter))]
[System.Configuration.ConfigurationProperty("clientConnectedCheck", DefaultValue="00:00:05")]
public TimeSpan ClientConnectedCheck { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteTimeSpanConverter))>]
[<System.Configuration.ConfigurationProperty("clientConnectedCheck", DefaultValue="00:00:05")>]
member this.ClientConnectedCheck : TimeSpan with get, set
Public Property ClientConnectedCheck As TimeSpan

Nilai Properti

Nilai TimeSpan yang menunjukkan waktu antrean. Nilai default-nya adalah 5 detik.

Atribut

Contoh

Contoh kode berikut menunjukkan cara mengakses dan memodifikasi ClientConnectedCheck properti.


// Get the current ClientConnectedCheck property value.
TimeSpan clConnectCheck = 
 processModelSection.ClientConnectedCheck;

// Set the ClientConnectedCheck property to
// TimeSpan.Parse("00:15:00").
processModelSection.ClientConnectedCheck = 
    TimeSpan.Parse("00:15:00");
' Get the current ClientConnectedCheck property value.
   Dim clConnectCheck As TimeSpan = _
   processModelSection.ClientConnectedCheck

' Set the ClientConnectedCheck property to
' TimeSpan.Parse("00:15:00").
   processModelSection.ClientConnectedCheck = _
   TimeSpan.Parse("00:15:00")

Keterangan

Properti ini menentukan berapa lama permintaan diantrekan sebelum ASP.NET melakukan pemeriksaan terhubung klien.

Nota

Jika interval kedaluwarsa saat permintaan masih diantrekan, pemeriksaan terhubung klien dilakukan sebelum meneruskan permintaan ke proses pekerja ASP.NET untuk penanganan.

Berlaku untuk