OutputCacheProfileCollection 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
개체의 OutputCacheProfile 컬렉션을 나타냅니다. 이 클래스는 상속할 수 없습니다.
public ref class OutputCacheProfileCollection sealed : System::Configuration::ConfigurationElementCollection
[System.Configuration.ConfigurationCollection(typeof(System.Web.Configuration.OutputCacheProfile))]
public sealed class OutputCacheProfileCollection : System.Configuration.ConfigurationElementCollection
[<System.Configuration.ConfigurationCollection(typeof(System.Web.Configuration.OutputCacheProfile))>]
type OutputCacheProfileCollection = class
inherit ConfigurationElementCollection
Public NotInheritable Class OutputCacheProfileCollection
Inherits ConfigurationElementCollection
- 상속
- 특성
예제
다음 코드 예제에서는 개체를 가져오는 방법을 보여 있습니다 OutputCacheProfileCollection .
// 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 profile collection.
System.Web.Configuration.OutputCacheProfileCollection outputCacheProfiles =
outputCacheSettings.OutputCacheProfiles;
' ' 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)
' Get the profile collection.
Dim outputCacheProfiles _
As System.Web.Configuration.OutputCacheProfileCollection = _
outputCacheSettings.OutputCacheProfiles
설명
페이지 OutputCacheProfileCollection 또는 사용자 컨트롤에서 사용하는 출력 캐시 설정의 관리를 중앙 집중화할 수 있습니다.
이를 통해 포함된 개체에 프로그래밍 방식으로 액세스하고 수정할 OutputCacheProfile 수 있습니다.
메모
@OutputCacheProfileCacheProfile 지시문의 특성을 사용하여 페이지에 적용할 수 있습니다.
생성자
| Name | Description |
|---|---|
| OutputCacheProfileCollection() |
OutputCacheProfileCollection 클래스의 새 인스턴스를 초기화합니다. |
속성
메서드
명시적 인터페이스 구현
| Name | Description |
|---|---|
| ICollection.CopyTo(Array, Int32) |
배열에 ConfigurationElementCollection 복사합니다. (다음에서 상속됨 ConfigurationElementCollection) |
확장명 메서드
| Name | Description |
|---|---|
| AsParallel(IEnumerable) |
쿼리의 병렬 처리를 사용하도록 설정합니다. |
| AsQueryable(IEnumerable) |
IEnumerable IQueryable변환합니다. |
| Cast<TResult>(IEnumerable) |
IEnumerable 요소를 지정된 형식으로 캐스팅합니다. |
| OfType<TResult>(IEnumerable) |
지정된 형식에 따라 IEnumerable 요소를 필터링합니다. |