Language

CacheConditionAttribute クラス

定義

外側の CacheView でアクティブな場合は、コンポーネントをライブ キャッシュ コンポーネントとして扱う (または、 CacheBehaviorAttribute と Throwで注釈が付けられたときにスローする) の代わりに、キャッシュされた出力にコンポーネントを含めるさまざまなディメンションを宣言します。

[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
属性

コンストラクター

Name 説明
CacheConditionAttribute(CacheVaryBy)

CacheConditionAttribute クラスの新しいインスタンスを初期化します。

プロパティ

Name 説明
VaryBy

外側の CacheView ですべてアクティブな場合に、キャッシュされた出力にコンポーネントを含めるさまざまなディメンションを取得します。

適用対象