SessionStateSection.StateNetworkTimeout Properti
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Mendapatkan atau mengatur jumlah waktu koneksi jaringan antara server Web dan server status dapat tetap menganggur.
public:
property TimeSpan StateNetworkTimeout { TimeSpan get(); void set(TimeSpan value); };
[System.ComponentModel.TypeConverter(typeof(System.Configuration.TimeSpanSecondsOrInfiniteConverter))]
[System.Configuration.ConfigurationProperty("stateNetworkTimeout", DefaultValue="00:00:10")]
public TimeSpan StateNetworkTimeout { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Configuration.TimeSpanSecondsOrInfiniteConverter))>]
[<System.Configuration.ConfigurationProperty("stateNetworkTimeout", DefaultValue="00:00:10")>]
member this.StateNetworkTimeout : TimeSpan with get, set
Public Property StateNetworkTimeout As TimeSpan
Nilai Properti
Waktu, dalam detik, bahwa koneksi jaringan antara server Web dan server status dapat tetap menganggur sebelum sesi ditinggalkan. Nilai default-nya adalah 10 detik.
- Atribut
Contoh
Contoh kode berikut menunjukkan cara mendapatkan StateNetworkTimeout properti. Lihat contoh kode dalam SessionStateSection topik kelas untuk mempelajari cara mengakses SessionStateSection objek.
// Display the current StateNetworkTimeout property value.
Console.WriteLine("StateNetworkTimeout: {0}",
sessionStateSection.StateNetworkTimeout);
' Display the current StateNetworkTimeout property value.
Console.WriteLine("StateNetworkTimeout: {0}", _
sessionStateSection.StateNetworkTimeout)
Keterangan
Atribut ini sessionStateSection diperlukan ketika Mode properti diatur ke StateServer.