다음을 통해 공유


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

속성 값

OutputCacheProfileCollection

OutputCacheProfileCollection 개체의 OutputCacheProfile입니다.

특성

예제

다음 코드 예제에서는 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 출력을 나타내는 개체를 캐시의 페이지 애플리케이션에서 사용할 수 있는 설정입니다. 설정 하 여 페이지에 적용할 수 있습니다 이러한 설정은 CacheProfile 특성을 @ OutputCache 지시문입니다. 프로필 캐시 만료 시간, 종속성 및 캐시 위치 등의 특성을 캐시 하는 컨트롤을 적용 합니다.

합니다 @ OutputCache 지시문에 포함 된 모든 설정을 재정의할 수는 OutputCacheProfile 제외 하 고는 Enabled 속성입니다. 이렇게 하면 사용 하지 않도록 설정 하거나 설정할 수 있습니다는 OutputCacheProfile 개체를 재정의 한 모든 페이지에서 지시문을 수정 하지 않고도 합니다.

적용 대상

추가 정보