TempDataAttribute Třída

Definice

Vlastnosti zdobené TempDataAttribute budou mít jejich hodnoty uložené a načtené z ITempDataDictionary. TempDataAttribute podporuje vlastnosti controllers, Razor Pages a Razor Page Models.

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
Dědičnost
TempDataAttribute
Atributy

Konstruktory

TempDataAttribute()

Vlastnosti

Key

Získá nebo nastaví klíč použitý k získání nebo přidání vlastnosti z hodnoty z ITempDataDictionary. Pokud není zadaný, klíč je odvozen z názvu vlastnosti.

Platí pro