JSRuntime.ReadJSDataAsStreamAsync Metodo

Definizione

Fornisce un Stream oggetto per il riferimento ai dati rappresentato da 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)

Parametri

jsStreamReference
IJSStreamReference

IJSStreamReference per produrre un flusso di dati per.

totalLength
Int64

Lunghezza prevista del flusso di dati in ingresso.

cancellationToken
CancellationToken

CancellationToken per annullare la lettura.

Restituisce

Stream per il riferimento ai dati rappresentato da jsStreamReference.

Si applica a