語言

CacheConditionAttribute 類別

定義

宣告變維度,當所有元件在包覆的 CacheView 上啟用時,會將該元件包含在快取輸出中,而非將其視為活快取元件(或在標註 和 CacheBehaviorAttributeThrow時拋出)。

[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=true)]
public sealed class CacheConditionAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=true)>]
type CacheConditionAttribute = class
    inherit Attribute
Public NotInheritable Class CacheConditionAttribute
Inherits Attribute
繼承
CacheConditionAttribute
屬性

建構函式

名稱 Description
CacheConditionAttribute(CacheVaryBy)

初始化 CacheConditionAttribute 類別的新執行個體。

屬性

名稱 Description
VaryBy

取得變維度,當所有維度在包覆的 CacheView 上啟用時,會將該元件包含在快取輸出中。

適用於