Sdílet prostřednictvím


JSRuntime.ReadJSDataAsStreamAsync Metoda

Definice

Stream Poskytuje pro odkaz na data reprezentovaný 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)

Parametry

jsStreamReference
IJSStreamReference

IJSStreamReference k vytvoření datového proudu pro.

totalLength
Int64

Očekávaná délka příchozího datového proudu

cancellationToken
CancellationToken

CancellationToken pro zrušení čtení.

Návraty

Stream pro odkaz na data reprezentovaný parametrem jsStreamReference.

Platí pro