다음을 통해 공유


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 있는 시간 빈도를 정의합니다.

참고 구성 섹션의 요소에서 데이터베이스 수준에서 빈도를 databases 재정의할 sqlCacheDependencycache 수 있습니다.

적용 대상

추가 정보