SqlCacheDependencySection.PollTime 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 frekuensi polling SqlCacheDependency tabel database untuk perubahan.
public:
property int PollTime { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("pollTime", DefaultValue=60000)]
public int PollTime { get; set; }
[<System.Configuration.ConfigurationProperty("pollTime", DefaultValue=60000)>]
member this.PollTime : int with get, set
Public Property PollTime As Integer
Nilai Properti
Waktu polling dependensi cache SQL, dalam milidetik. Defaultnya adalah 500.
- Atribut
Contoh
Contoh kode berikut menunjukkan cara menggunakan PollTime properti .
// Get the current PollTime property value.
Int32 pollTimeValue = sqlDs.PollTime;
// Set the PollTime property to 500 milliseconds.
sqlDs.PollTime = 500;
' Get the current PollTime property value.
Dim pollTimeValue As Int32 = sqlDs.PollTime
' Set the PollTime property to 500 milliseconds.
sqlDs.PollTime = 500
Keterangan
Properti PollTime menentukan frekuensi waktu yang ASP.NET polling database untuk perubahan dalam tabel yang ditautkan ke item yang di-cache.
Catatan Frekuensi dapat ditimpa pada tingkat database di databases elemen sqlCacheDependency di bagian cache konfigurasi.