Language

CacheBehaviorAttribute クラス

定義

外側の CacheView のキャッシュされた出力にベイクされないようにコンポーネントをマークし、その場合の動作を指定します。 既定では、コンポーネントはライブ (Rerender): 要求ごとに独自のライフサイクルを実行しますが、パラメーターは 1 回キャプチャされ、キャッシュ ヒット時に変更されずに再生されます。 ライブレンダリングではなく、 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
属性

コンストラクター

Name 説明
CacheBehaviorAttribute(CacheBehavior)

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

プロパティ

Name 説明
Behavior

外側の CacheView のキャッシュされた出力にコンポーネントをベイクできない場合に適用する動作を取得します。

適用対象