语言

PersistentStateAttribute 类

定义

指示参数的值可能来自上一呈现的永久性组件状态。

[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
属性

构造函数

名称 说明
PersistentStateAttribute()

指示参数的值可能来自上一呈现的永久性组件状态。

属性

名称 说明
AllowUpdates

获取或设置一个值,该值指示当在增强导航期间提供更新时,组件是否希望接收对参数的更新超出初始化期间提供的初始值。

RestoreBehavior

获取或设置还原数据时要使用的行为。

适用于