ReadAllBytesAsync(CancellationToken) Method
Reads all bytes from the file.
Namespace
Statiq.Common
Containing Type
IFile

Syntax

Task<byte[]> ReadAllBytesAsync(CancellationToken cancellationToken = default(CancellationToken))

Parameters

Name Type Description
cancellationToken CancellationToken A cancellation token.

Return Value

Type Description
Task<byte[]> All bytes in the file.