OutputCacheAttribute クラス

定義

出力キャッシュで適切なヘッダーを設定するために必要なパラメーターを指定します。

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public sealed class OutputCacheAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)>]
type OutputCacheAttribute = class
    inherit Attribute
Public NotInheritable Class OutputCacheAttribute
Inherits Attribute
継承
OutputCacheAttribute
属性

注釈

この属性には、出力キャッシュ ミドルウェアが必要です。

コンストラクター

OutputCacheAttribute()

出力キャッシュで適切なヘッダーを設定するために必要なパラメーターを指定します。

プロパティ

Duration

応答がキャッシュされる期間を秒単位で取得または設定します。

NoStore

応答をキャッシュするかどうかを決定する値を取得または設定します。 trueに設定すると、応答はキャッシュされません。

PolicyName

キャッシュ ポリシー名の値を取得または設定します。

Tags

出力キャッシュに適用するタグを取得または設定します。

VaryByHeaderNames

異なるヘッダー名を取得または設定します。

VaryByQueryKeys

異なるクエリ キーを取得または設定します。

VaryByRouteValueNames

変更するルート値の名前を取得または設定します。

適用対象