다음을 통해 공유


OutputCacheProfile.Enabled 속성

정의

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

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

속성 값

캐싱을 사용하도록 설정하면 기본값은 false입니다.

특성

예제

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


 // Get the current Enabled.
Boolean enabledValue = 
    outputCacheProfile.Enabled;

 // Set the Enabled.
 outputCacheProfile.Enabled = 
     false;
    ' Get the current Enabled property.
    Dim enabledValue As [Boolean] = _
    outputCacheProfile.Enabled
  
    ' Set the Enabled property.
outputCacheProfile.Enabled = False

설명

Enabled 속성을 사용하면 캐싱 메커니즘을 한 곳에서만 사용하거나 사용하지 않도록 설정할 수 있습니다. 이를 OutputCacheProfile사용하는 모든 페이지 또는 컨트롤에 영향을 줍니다.

적용 대상

추가 정보