CacheConditionAttribute 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
宣告變維度,當所有元件在包覆的 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 上啟用時,會將該元件包含在快取輸出中。 |