SqlCacheDependencySection 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
ASP.NET 애플리케이션의 SQL 캐시 종속성을 구성합니다. 이 클래스는 상속될 수 없습니다.
public ref class SqlCacheDependencySection sealed : System::Configuration::ConfigurationSection
public sealed class SqlCacheDependencySection : System.Configuration.ConfigurationSection
type SqlCacheDependencySection = class
inherit ConfigurationSection
Public NotInheritable Class SqlCacheDependencySection
Inherits ConfigurationSection
- 상속
예제
다음 코드 예제에서는 가져오는 방법을 보여 줍니다는 SqlCacheDependencySection 기존 웹 애플리케이션의 구성 파일에서 개체입니다.
// Get the Web application configuration.
System.Configuration.Configuration webConfig =
WebConfigurationManager.OpenWebConfiguration("/aspnetTest");
// Get the section.
string configPath = "system.web/cache/sqlCacheDependency";
System.Web.Configuration.SqlCacheDependencySection sqlDs =
(System.Web.Configuration.SqlCacheDependencySection)webConfig.GetSection(
configPath);
' Get the Web application configuration.
Dim webConfig As System.Configuration.Configuration = _
WebConfigurationManager.OpenWebConfiguration( _
"/aspnetTest")
' Get the section.
Dim configPath As String = _
"system.web/cache/sqlCacheDependency"
Dim sqlDs _
As System.Web.Configuration.SqlCacheDependencySection = _
CType(webConfig.GetSection(configPath), _
System.Web.Configuration.SqlCacheDependencySection)
설명
SqlCacheDependencySection 프로그래밍 방식으로 액세스 하 고 수정할 수 있습니다 합니다 sqlCacheDependency
의 요소는 cache
구성 섹션입니다.
SQL 캐시 종속성에는 캐시 된 데이터를 원본 소스를 사용 하 여 동기화 할 수 있습니다. ASP.NET 애플리케이션의 캐시 인스턴스는 특정 SQL Server 데이터베이스 테이블에 저장 된 항목 간의 관계를 구성한 후의 SqlCacheDependency 클래스 테이블 변경에서 항목을 해당 항목은 자동으로 되도록 테이블 모니터링 캐시에서 제거 합니다.
이 요소의 설정의 테이블 기반 버전에만 영향을 줍니다는 SqlCacheDependency 개체입니다. SQL Server 2005 이상에서 사용되는 행 수준 SqlCacheDependency 개체는 이러한 설정의 영향을 받지 않습니다.
참고
합니다 SqlCacheDependencySection section 속성으로 정의 된 제한에 따라 구성 파일의 관련된 섹션에 정보를 작성할 수 있습니다 AllowDefinition 값인 MachineToApplication합니다. 계층에서 허용 되지 않습니다 수준에서 구성 파일에 쓰려고 시도 파서에 의해 생성 된 오류 메시지가 발생 합니다. 그러나 계층의 모든 수준에서 구성 정보를 읽을이 클래스를 사용할 수 있습니다.
생성자
SqlCacheDependencySection() |
SqlCacheDependencySection 클래스의 새 인스턴스를 초기화합니다. |