PersistentComponentStateSerializer<T>.Restore Method
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.
Deserializes a value of type T from the provided data.
This method must be synchronous to avoid UI tearing during component state restoration.
public abstract T Restore(System.Buffers.ReadOnlySequence<byte> data);
abstract member Restore : System.Buffers.ReadOnlySequence<byte> -> 'T
Public MustOverride Function Restore (data As ReadOnlySequence(Of Byte)) As T
Parameters
- data
- ReadOnlySequence<Byte>
The serialized data to deserialize.
Returns
The deserialized value.