TempDataAttribute クラス

定義

TempDataAttribute 修飾されたプロパティの値は に格納され、 ITempDataDictionaryから読み込まれます。 TempDataAttribute は、コントローラー、Razor ページ、および Razor ページ モデルのプロパティでサポートされています。

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

コンストラクター

名前 説明
TempDataAttribute()

TempDataAttribute 修飾されたプロパティの値は に格納され、 ITempDataDictionaryから読み込まれます。 TempDataAttribute は、コントローラー、Razor ページ、および Razor ページ モデルのプロパティでサポートされています。

プロパティ

名前 説明
Key

から ITempDataDictionary値を取得または追加するために使用するキーを取得または設定します。 指定しない場合、キーはプロパティ名から派生します。

適用対象