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
- 繼承
- 屬性
建構函式
| 名稱 | Description |
|---|---|
| PersistentStateAttribute() |
表示參數值可能來自先前渲染的持久元件狀態。 |
屬性
| 名稱 | Description |
|---|---|
| AllowUpdates |
取得或設定一個值,表示元件是否希望在初始化時提供更新後,接收超出初始值的參數更新。 |
| RestoreBehavior |
它會取得或設定還原資料時使用的行為。 |