Share via


StreamCopyOperation Class

Definition

Provides APIs to copy a range of bytes from a source Stream to a destination Stream.

public ref class StreamCopyOperation abstract sealed
public static class StreamCopyOperation
type StreamCopyOperation = class
Public Class StreamCopyOperation
Inheritance
StreamCopyOperation

Methods

CopyToAsync(Stream, Stream, Nullable<Int64>, CancellationToken)

Asynchronously reads the given number of bytes from the source stream and writes them to another stream.

CopyToAsync(Stream, Stream, Nullable<Int64>, Int32, CancellationToken)

Asynchronously reads the given number of bytes from the source stream and writes them to another stream, using a specified buffer size.

Applies to