PersistentStateAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指示参数的值可能来自上一呈现的永久性组件状态。
[System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public sealed class PersistentStateAttribute : Microsoft.AspNetCore.Components.CascadingParameterAttributeBase
[<System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type PersistentStateAttribute = class
inherit CascadingParameterAttributeBase
Public NotInheritable Class PersistentStateAttribute
Inherits CascadingParameterAttributeBase
- 继承
- 属性
构造函数
| 名称 | 说明 |
|---|---|
| PersistentStateAttribute() |
指示参数的值可能来自上一呈现的永久性组件状态。 |
属性
| 名称 | 说明 |
|---|---|
| AllowUpdates |
获取或设置一个值,该值指示当在增强导航期间提供更新时,组件是否希望接收对参数的更新超出初始化期间提供的初始值。 |
| RestoreBehavior |
获取或设置还原数据时要使用的行为。 |