Condividi tramite


JSStreamReference.IJSStreamReference.OpenReadStreamAsync Metodo

Definizione

Apre un Stream oggetto con per JSRuntime il riferimento ai dati corrente.

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

Parametri

maxAllowedSize
Int64

Numero massimo di byte consentiti per la lettura da JavaScript.

cancellationToken
CancellationToken

CancellationToken per annullare la lettura.

Restituisce

Stream che può fornire dati associati al riferimento ai dati corrente.

Implementazioni

Si applica a