Share via


SqlCacheDependencySection.PollTime プロパティ

定義

SqlCacheDependency がデータベース テーブルをポーリングして変更をチェックする頻度を取得または設定します。

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

プロパティ値

SQL キャッシュ依存関係のポーリング間隔 (ミリ秒単位)。 既定値は 500 です。

属性

次のコード例は、PollTime プロパティの使用方法を示しています。


// 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

注釈

プロパティは PollTime 、ASP.NET がキャッシュされた項目にリンクされているテーブルの変更をデータベースにポーリングする時間の頻度を定義します。

メモ頻度は、構成セクションの の 要素sqlCacheDependencydatabasesデータベース レベルでcacheオーバーライドできます。

適用対象

こちらもご覧ください