TempDataAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
用 TempDataAttribute 修饰的属性将存储值并从中 ITempDataDictionary加载。 TempDataAttribute 控制器、Razor Pages 和 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 Pages 和 Razor 页面模型的属性支持。 |
属性
Key |
获取或设置用于从 ITempDataDictionary值获取或添加属性的键。 如果未指定,则密钥派生自属性名称。 |