OutputCacheSettingsSection 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
애플리케이션 페이지에 대한 출력 캐시 설정을 구성합니다. 이 클래스는 상속될 수 없습니다.
public ref class OutputCacheSettingsSection sealed : System::Configuration::ConfigurationSection
public sealed class OutputCacheSettingsSection : System.Configuration.ConfigurationSection
type OutputCacheSettingsSection = class
inherit ConfigurationSection
Public NotInheritable Class OutputCacheSettingsSection
Inherits ConfigurationSection
- 상속
예제
다음 코드 예제에서는 가져오는 방법을 보여 줍니다는 OutputCacheSettingsSection 기존 웹 애플리케이션의 구성 파일에서 개체입니다.
// Get the Web application configuration.
System.Configuration.Configuration webConfig =
WebConfigurationManager.OpenWebConfiguration("/aspnetTest");
// Get the section.
string configPath =
"system.web/caching/outputCacheSettings";
System.Web.Configuration.OutputCacheSettingsSection outputCacheSettings =
(System.Web.Configuration.OutputCacheSettingsSection)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/caching/outputCacheSettings"
Dim outputCacheSettings _
As System.Web.Configuration.OutputCacheSettingsSection = _
CType(webConfig.GetSection(configPath), _
System.Web.Configuration.OutputCacheSettingsSection)
설명
합니다 OutputCacheSettingsSection 클래스를 사용 하면 프로그래밍 방식으로 액세스 하 고 수정할 수 있습니다 합니다 outputCacheSettings
요소의 caching
구성 파일의 섹션입니다. 종속성을 정의 하는 출력 캐시 설정을 (캐시 파일, 캐시 키에 저장 되어 있는 항목 간의 관계 나 CacheDependency 개체) 출력 캐시에 사용 되는 예를 들어 여는 @ OutputCache 지시문 또는 OutputCacheProfile입니다.
참고
합니다 OutputCacheSettingsSection section 속성으로 정의 된 제한에 따라 구성 파일의 관련된 섹션에 정보를 작성할 수 있습니다 AllowDefinition 값인 MachineToApplication합니다. 계층에서 허용 되지 않습니다 수준에서 구성 파일에 쓰려고 시도 파서에 의해 생성 된 오류 메시지가 발생 합니다. 그러나 계층의 모든 수준에서 구성 정보를 읽을이 클래스를 사용할 수 있습니다.
생성자
OutputCacheSettingsSection() |
OutputCacheSettingsSection 클래스의 새 인스턴스를 초기화합니다. |