Partilhar via


JSStreamReference.IJSStreamReference.OpenReadStreamAsync Método

Definição

Abre um Stream com o JSRuntime para a referência de dados atual.

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

Parâmetros

maxAllowedSize
Int64

Número máximo de bytes permitidos para leitura do JavaScript.

cancellationToken
CancellationToken

CancellationToken para cancelar a leitura.

Retornos

Stream que pode fornecer dados associados à referência de dados atual.

Implementações

Aplica-se a