Partilhar via


JSRuntime.ReadJSDataAsStreamAsync Método

Definição

Fornece um Stream para a referência de dados representada por jsStreamReference.

protected internal virtual System.Threading.Tasks.Task<System.IO.Stream> ReadJSDataAsStreamAsync (Microsoft.JSInterop.IJSStreamReference jsStreamReference, long totalLength, System.Threading.CancellationToken cancellationToken = default);
abstract member ReadJSDataAsStreamAsync : Microsoft.JSInterop.IJSStreamReference * int64 * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>
override this.ReadJSDataAsStreamAsync : Microsoft.JSInterop.IJSStreamReference * int64 * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>
Protected Friend Overridable Function ReadJSDataAsStreamAsync (jsStreamReference As IJSStreamReference, totalLength As Long, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Stream)

Parâmetros

jsStreamReference
IJSStreamReference

IJSStreamReference para produzir um fluxo de dados.

totalLength
Int64

Comprimento esperado do fluxo de dados de entrada.

cancellationToken
CancellationToken

CancellationToken para cancelar leitura.

Retornos

Stream para a referência de dados representada por jsStreamReference.

Aplica-se a