TempDataAttribute Clase

Definición

Las propiedades decoradas con TempDataAttribute tendrán sus valores almacenados en y cargados desde .ITempDataDictionary TempDataAttribute se admite en las propiedades de controladores, páginas de Razor y modelos de página de 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
Herencia
TempDataAttribute
Atributos

Constructores

TempDataAttribute()

Las propiedades decoradas con TempDataAttribute tendrán sus valores almacenados en y cargados desde .ITempDataDictionary TempDataAttribute se admite en las propiedades de controladores, páginas de Razor y modelos de página de Razor.

Propiedades

Key

Obtiene o establece la clave usada para obtener o agregar la propiedad del valor de ITempDataDictionary. Cuando no se especifica, la clave se deriva del nombre de propiedad.

Se aplica a