Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: Task WriteAsync(this Stream, byte[], CancellationToken?)

Declaration

public static Task WriteAsync(
    this Stream stream,
    byte[] data,
    CancellationToken? token = null
)

Summary

Writes the specified data to the current stream.

Parameters

this Streamstream The stream to write data to.
byte[]data The data to write to the stream.
CancellationToken?token A cancellation token for this async task.