WriteAllBytesAsync(byte[], bool, CancellationToken) Method
Writes the specified bytes to a file.
Namespace
Statiq.Common
Containing Type
IFile

Syntax

Task WriteAllBytesAsync(byte[] bytes, bool createDirectory = true, CancellationToken cancellationToken = default(CancellationToken))

Parameters

Name Type Description
bytes byte[] The bytes to write.
createDirectory bool Will create any needed directories that don't already exist if set to true.
cancellationToken CancellationToken A cancellation token.

Return Value

Type Description
Task