SystemWebCachingSectionGroup 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
구성 파일 내에서 그룹을 구성합니다 caching . 이 클래스는 상속할 수 없습니다.
public ref class SystemWebCachingSectionGroup sealed : System::Configuration::ConfigurationSectionGroup
public sealed class SystemWebCachingSectionGroup : System.Configuration.ConfigurationSectionGroup
type SystemWebCachingSectionGroup = class
inherit ConfigurationSectionGroup
Public NotInheritable Class SystemWebCachingSectionGroup
Inherits ConfigurationSectionGroup
- 상속
예제
다음 코드 예제에서는 기존 웹 애플리케이션과 연결된 구성 파일에서 개체를 가져오는 SystemWebCachingSectionGroup 방법을 보여 있습니다. 이 개체를 사용하여 그룹에 포함된 섹션에 caching 액세스할 수 있습니다.
// Get the Web application configuration.
System.Configuration.Configuration configuration =
WebConfigurationManager.OpenWebConfiguration(
"/aspnetTest");
// Get the <caching> section group.
SystemWebCachingSectionGroup cachingSectionGroup =
(SystemWebCachingSectionGroup)configuration.GetSectionGroup(
"system.web/caching");
' Get the Web application configuration.
Dim configuration _
As System.Configuration.Configuration = _
WebConfigurationManager.OpenWebConfiguration( _
"/aspnetTest")
' Get the <caching> section group.
Dim cachingSectionGroup _
As SystemWebCachingSectionGroup = _
CType(configuration.GetSectionGroup( _
"system.web/caching"), SystemWebCachingSectionGroup)
설명
클래스는 SystemWebCachingSectionGroup 프로그래밍 방식으로 액세스 하 고 구성 파일의 섹션을 caching 수정 하는 방법을 제공 합니다.
클래스와 caching 섹션은 SystemWebCachingSectionGroup 사이트 또는 애플리케이션에 대한 캐싱 메커니즘의 중앙 집중식 제어를 제공합니다. 이렇게 하면 애플리케이션의 개별 페이지를 수정하지 않고도 캐싱을 배포, 수정 및 비활성화할 수 있습니다.
ASP.NET 캐싱 메커니즘은 클래스에 Cache 의해 구현됩니다. 자세한 내용은 ASP.NET 캐싱 개요를 참조하세요.
다음 목록에서는 ASP.NET 제공하는 두 가지 유형의 캐싱에 대해 설명합니다.
첫 번째는 동적 페이지 및 사용자 제어 응답을 저장할 수 있는 출력 캐싱이라고 합니다. 후속 요청에서는 페이지 또는 사용자 제어 코드가 실행되지 않습니다. 캐시된 출력은 요청을 충족하는 데 사용됩니다. 및 OutputCacheSettings 속성을 사용하여 출력 캐싱 설정에 OutputCache 액세스할 수 있습니다.
캐싱의 두 번째 유형은 기존 애플리케이션 데이터 캐싱으로, 애플리케이션이 이를 다시 만드는 데 걸리는 시간과 리소스를 절약할 수 있도록 임의의 개체를 서버 메모리에 프로그래밍 방식으로 저장하는 데 사용할 수 있습니다. 속성을 사용하여 이러한 캐시 설정에 Cache 액세스할 수 있습니다.
생성자
| Name | Description |
|---|---|
| SystemWebCachingSectionGroup() |
SystemWebCachingSectionGroup새 인스턴스를 생성합니다. |
속성
메서드
| Name | Description |
|---|---|
| Equals(Object) |
지정된 개체가 현재 개체와 같은지 여부를 확인합니다. (다음에서 상속됨 Object) |
| ForceDeclaration() |
이 ConfigurationSectionGroup 개체에 대한 선언을 강제로 실행합니다. (다음에서 상속됨 ConfigurationSectionGroup) |
| ForceDeclaration(Boolean) |
이 ConfigurationSectionGroup 개체에 대한 선언을 강제로 실행합니다. (다음에서 상속됨 ConfigurationSectionGroup) |
| GetHashCode() |
기본 해시 함수로 사용됩니다. (다음에서 상속됨 Object) |
| GetType() |
현재 인스턴스의 Type 가져옵니다. (다음에서 상속됨 Object) |
| MemberwiseClone() |
현재 Object단순 복사본을 만듭니다. (다음에서 상속됨 Object) |
| ShouldSerializeSectionGroupInTargetVersion(FrameworkName) |
구성 개체 계층 구조가 .NET Framework의 지정된 대상 버전에 대해 serialize될 때 현재 ConfigurationSectionGroup 인스턴스를 serialize해야 하는지 여부를 나타냅니다. (다음에서 상속됨 ConfigurationSectionGroup) |
| ToString() |
현재 개체를 나타내는 문자열을 반환합니다. (다음에서 상속됨 Object) |