SqlCacheDependencySection.PollTime 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
데이터베이스 테이블에서 변경 내용을 폴링하는 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 수 있습니다.