You’re viewing outdated documentation. View the latest Customer’s Canvas On-Premises documentation.

Deserialize Method

Applies to: Customer's Canvas On-Premises; Design Atoms .NET 6.0.0, 6.x (may differ) · Archived documentation

Deserializes a state from a Stream to a State object.

Namespace: Aurigma.DesignAtoms.Serialization
Assembly: Aurigma.DesignAtoms (in Aurigma.DesignAtoms.dll)

Syntax

C#
            State Deserialize(
	Stream stateStream,
	ISerializableStorage resourceStorage,
	bool optimizedState
)

Parameters

stateStream

Type: System.IO.Stream

The state file to deserialize.
resourceStorage

Type: ISerializableStorage

The storage. By default, this value is null, and the state is stored in the default state folder.
optimizedState

Type: System.Boolean

If false, the state file is self-contained and includes assets. If true, the state file contains links to assets in the file cache instead of assets themselves. The default value is false.

Return Value

The deserialized State from the state file.

See Also

Reference