다음을 통해 공유


OutputCacheSection.EnableFragmentCache 속성

정의

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

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

속성 값

조각 캐시를 사용하도록 설정하면 기본값은 true입니다.

특성

예제

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


// Get the current EnabledFragmentCache.
Boolean enabledFragmentCache =
    outputCacheSection.EnableFragmentCache;

// Set the EnabledFragmentCache.
outputCacheSection.EnableFragmentCache = false;
' Get the current EnabledFragmentCache.
  Dim enabledFragmentCache As [Boolean] = _
  outputCacheSection.EnableFragmentCache

' Set the EnabledFragmentCache.
outputCacheSection.EnableFragmentCache = False

설명

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

적용 대상

추가 정보