다음을 통해 공유


OutputCacheSection.EnableOutputCache 속성

정의

출력 캐시를 사용할 수 있는지 여부를 나타내는 값을 가져오거나 설정합니다.

public:
 property bool EnableOutputCache { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("enableOutputCache", DefaultValue=true)]
public bool EnableOutputCache { get; set; }
[<System.Configuration.ConfigurationProperty("enableOutputCache", DefaultValue=true)>]
member this.EnableOutputCache : bool with get, set
Public Property EnableOutputCache As Boolean

속성 값

출력 캐시를 사용하도록 설정하면 이고, 그렇지 않으면 . 기본값은 true입니다.

특성

예제

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


// Get the current EnabledOutputCache.
Boolean enabledOutputCache = 
    outputCacheSection.EnableOutputCache;

// Set the EnabledOutputCache.
outputCacheSection.EnableOutputCache = false;
' Get the current EnabledOutputCache.
  Dim enabledOutputCache As [Boolean] = _
  outputCacheSection.EnableOutputCache

' Set the EnabledOutputCache.
outputCacheSection.EnableOutputCache = False

설명

속성이 EnableFragmentCache 설정된 false경우 @ OutputCache 지시문 또는 페이지에서 사용하는 캐싱 프로필의 설정에 관계없이 서버에 페이지가 캐시되지 않습니다. 자세한 내용은 OutputCacheSettingsSectionOutputCacheProfile를 참조하세요.

적용 대상

추가 정보