다음을 통해 공유


OutputCacheSettingsSection.OutputCacheProfiles 속성

정의

를 가져옵니다 OutputCacheProfileCollection.

public:
 property System::Web::Configuration::OutputCacheProfileCollection ^ OutputCacheProfiles { System::Web::Configuration::OutputCacheProfileCollection ^ get(); };
[System.Configuration.ConfigurationProperty("outputCacheProfiles")]
public System.Web.Configuration.OutputCacheProfileCollection OutputCacheProfiles { get; }
[<System.Configuration.ConfigurationProperty("outputCacheProfiles")>]
member this.OutputCacheProfiles : System.Web.Configuration.OutputCacheProfileCollection
Public ReadOnly Property OutputCacheProfiles As OutputCacheProfileCollection

속성 값

개체의 OutputCacheProfile A OutputCacheProfileCollection 입니다.

특성

예제

다음 코드 예제에서는 속성을 사용 하는 방법을 보여 있습니다 OutputCacheProfiles .

// Get the current OutputCacheProfiles property value.
OutputCacheProfileCollection outputCacheProfilesValue =
  outputCacheSettings.OutputCacheProfiles;
' Get the current OutputCacheProfiles property value.
  Dim outputCacheProfilesValue _
  As OutputCacheProfileCollection = _
  outputCacheSettings.OutputCacheProfiles

설명

OutputCacheProfiles 속성을 사용하면 구성 파일의 요소에 outputCacheProfiles 프로그래밍 방식으로 액세스할 수 있습니다. 속성을 사용하여 OutputCacheProfiles 요소를 프로그래밍 방식으로 수정할 outputCacheProfiles 수 있습니다.

outputCacheProfiles 섹션에는 애플리케이션의 OutputCacheProfile 페이지에서 사용할 수 있는 출력 캐시 설정을 나타내는 개체가 포함되어 있습니다. 이러한 설정은 @ OutputCache 지시문의 특성을 설정 CacheProfile 하여 페이지에 적용할 수 있습니다. 프로필을 적용하여 종속성, 캐시 위치 및 캐시 만료 시간과 같은 캐싱 특성을 제어합니다.

@ OutputCache 지시문은 속성을 제외한 모든 설정을 재정의할 OutputCacheProfileEnabled 수 있습니다. 이는 재정의 OutputCacheProfile 되었을 수 있는 모든 페이지에서 지시문을 수정하지 않고도 사용하거나 사용하지 않도록 설정할 수 있도록 하기 위한 것입니다.

적용 대상

추가 정보