WriteFromAsync(IFile, Stream, bool, bool, CancellationToken) Method
Copies from a source stream to a file, truncating any remaining data in the destination file.
Namespace
Statiq.Common
Containing Type
IFileExtensions

Syntax

public static Task WriteFromAsync(this IFile destinationFile, Stream sourceStream, bool overwrite = true, bool createDirectory = true, CancellationToken cancellationToken = default(CancellationToken))

Parameters

Name Type Description
destinationFile IFile
sourceStream Stream
overwrite bool
createDirectory bool
cancellationToken CancellationToken

Return Value

Type Description
Task