語言

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
屬性

建構函式

名稱 Description
PersistentStateAttribute()

表示參數值可能來自先前渲染的持久元件狀態。

屬性

名稱 Description
AllowUpdates

取得或設定一個值,表示元件是否希望在初始化時提供更新後,接收超出初始值的參數更新。

RestoreBehavior

它會取得或設定還原資料時使用的行為。

適用於