Skip to content

ResourceFormat.ReadAsync Method ​

Definition ​

Reads a resource file asynchronously.

c#
public new Task<ResourceFile> ReadAsync(Stream stream, CancellationToken cancellationToken = null);

Parameters ​

NameTypeDescription
streamStreamThe stream to read.
cancellationTokenCancellationTokenAn optional cancellation token.

Returns ​

Task<ResourceFile>

The file read from the stream.