Copies from a file to a destination stream.
- Namespace
- Statiq
.Common - Containing Type
- IFileExtensions
Syntax
public static Task CopyToAsync(this IFile sourceFile, Stream destinationStream, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Name | Type | Description |
---|---|---|
sourceFile | IFile | |
destinationStream | Stream | |
cancellationToken | CancellationToken |
Return Value
Type | Description |
---|---|
Task |