IJSStreamReference.OpenReadStreamAsync(Int64, CancellationToken) Method

Definition

Opens a Stream with the JSRuntime for the current data reference.

public System.Threading.Tasks.ValueTask<System.IO.Stream> OpenReadStreamAsync (long maxAllowedSize = 512000, System.Threading.CancellationToken cancellationToken = default);
abstract member OpenReadStreamAsync : int64 * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<System.IO.Stream>
Public Function OpenReadStreamAsync (Optional maxAllowedSize As Long = 512000, Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of Stream)

Parameters

maxAllowedSize
Int64

Maximum number of bytes permitted to be read from JavaScript.

cancellationToken
CancellationToken

CancellationToken for cancelling read.

Returns

ValueTask<Stream>

Stream which can provide data associated with the current data reference.

Applies to