CacheSection.DisableExpiration 속성

정의

캐시 만료가 비활성화되었는지 여부를 나타내는 값을 가져오거나 설정합니다.

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

속성 값

Boolean

캐시 만료가 비활성화되었으면 true이고, 그렇지 않으면 false입니다. 기본값은 false입니다.

특성

예제

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

// Enable or disable cache expiration.
cacheSection.DisableExpiration =
    !cacheSection.DisableExpiration;
' Enable or disable cache expiration.
cacheSection.DisableExpiration =
    Not cacheSection.DisableExpiration

설명

경우는 DisableExpiration 속성이 true, 캐시 된 항목이 만료 되지 않도록 합니다. 이 설정은 애플리케이션 코드에서 캐시 동작을 디버그 하는 데 도움이 됩니다. 유효 기간 보다 더 이상 캐시 되는 항목에서 수 있으므로 캐시 만료를 비활성화 하는 경우 주의 사용 합니다.

참고

페이지 출력 캐시에 추가 하려면 해당 페이지에 대 한 만료 정책을 설정 해야 합니다. 선언적으로 수행할 수는 @ OutputCache 지시문 또는 프로그래밍 방식으로 사용 하 여는 SetExpires 메서드. 자세한 내용은 방법: ASP.NET 페이지 캐시 만료 값 설정합니다.

적용 대상

추가 정보