PersistentStateAttribute.RestoreBehavior Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.