언어

CacheBehaviorAttribute 클래스

정의

구성 요소가 바깥쪽 CacheView의 캐시된 출력에 구겨지지 않도록 표시하고 이 경우 동작 방식을 지정합니다. 기본적으로 구성 요소는 라이브 상태로 유지됩니다(Rerender): 모든 요청에서 자체 수명 주기를 실행하는 반면 매개 변수는 한 번 캡처되고 캐시 적중 횟수에서 변경되지 않고 재생됩니다. 라이브 렌더링 대신 throw하는 데 사용합니다 Throw .

CacheConditionAttribute 경계가 지정된 차원에 따라 달라질 때 캐시된 출력에 구성 요소를 포함하도록 결합합니다.

[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=true)]
public sealed class CacheBehaviorAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=true)>]
type CacheBehaviorAttribute = class
    inherit Attribute
Public NotInheritable Class CacheBehaviorAttribute
Inherits Attribute
상속
CacheBehaviorAttribute
특성

생성자

속성 Description
CacheBehaviorAttribute(CacheBehavior)

CacheBehaviorAttribute 클래스의 새 인스턴스를 초기화합니다.

속성

속성 Description
Behavior

구성 요소를 바깥쪽 CacheView의 캐시된 출력에 구울 수 없는 경우 적용할 동작을 가져옵니다.

적용 대상