Dela via


JSStreamReference.IJSStreamReference.OpenReadStreamAsync Method

Definition

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

System.Threading.Tasks.ValueTask<System.IO.Stream> IJSStreamReference.OpenReadStreamAsync (long maxAllowedSize, System.Threading.CancellationToken cancellationToken);
abstract member Microsoft.JSInterop.IJSStreamReference.OpenReadStreamAsync : int64 * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<System.IO.Stream>
override this.Microsoft.JSInterop.IJSStreamReference.OpenReadStreamAsync : int64 * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<System.IO.Stream>
Function OpenReadStreamAsync (maxAllowedSize As Long, cancellationToken As CancellationToken) As ValueTask(Of Stream) Implements IJSStreamReference.OpenReadStreamAsync

Parameters

maxAllowedSize
Int64

Maximum number of bytes permitted to be read from JavaScript.

cancellationToken
CancellationToken

CancellationToken for cancelling read.

Returns

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

Implements

Applies to