JSRuntime.TransmitStreamAsync(Int64, DotNetStreamReference) 方法

定义

将流数据从 .NET 传输到 JS。 子类应重写此方法并提供将数据传输到 JS 并调用 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

参数

streamId
Int64

流的标识符。

dotNetStreamReference
DotNetStreamReference

对 .NET 流的引用以及流是否应保持打开状态。

返回

适用于