PersistentStateAttribute.RestoreBehavior Property

Definition

Gets or sets the behavior to use when restoring data.

public Microsoft.AspNetCore.Components.RestoreBehavior RestoreBehavior { get; set; }
member this.RestoreBehavior : Microsoft.AspNetCore.Components.RestoreBehavior with get, set
Public Property RestoreBehavior As RestoreBehavior

Property Value

Remarks

By default it always restores the value on all situations. Use to skip restoring the initial value when the host starts up. Use to skip restoring the last value captured the last time the current host was shut down.

Applies to