Share via


JSRuntime.TransmitStreamAsync(Int64, DotNetStreamReference) Method

Definition

Transmits the stream data from .NET to JS. Subclasses should override this method and provide an implementation that transports the data to JS and calls DotNet.jsCallDispatcher.supplyDotNetStream.

protected internal virtual System.Threading.Tasks.Task TransmitStreamAsync (long streamId, Microsoft.JSInterop.DotNetStreamReference dotNetStreamReference);
abstract member TransmitStreamAsync : int64 * Microsoft.JSInterop.DotNetStreamReference -> System.Threading.Tasks.Task
override this.TransmitStreamAsync : int64 * Microsoft.JSInterop.DotNetStreamReference -> System.Threading.Tasks.Task
Protected Friend Overridable Function TransmitStreamAsync (streamId As Long, dotNetStreamReference As DotNetStreamReference) As Task

Parameters

streamId
Int64

An identifier for the stream.

dotNetStreamReference
DotNetStreamReference

Reference to the .NET stream along with whether the stream should be left open.

Returns

Applies to