Share via


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

속성 값

Boolean

캐시를 사용하면 true이고, 그렇지 않으면 false입니다. 기본값은 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합니다.

적용 대상

추가 정보