Dela via


JSStreamReference Class

Definition

Implements functionality for IJSStreamReference.

public sealed class JSStreamReference : Microsoft.JSInterop.Implementation.JSObjectReference, IAsyncDisposable, Microsoft.JSInterop.IJSStreamReference
type JSStreamReference = class
    inherit JSObjectReference
    interface IJSStreamReference
    interface IAsyncDisposable
Public NotInheritable Class JSStreamReference
Inherits JSObjectReference
Implements IAsyncDisposable, IJSStreamReference
Inheritance
JSStreamReference
Implements

Properties

Id

The unique identifier assigned to this instance.

(Inherited from JSObjectReference)
Length

Length of the Stream provided by JavaScript.

Methods

DisposeAsync() (Inherited from JSObjectReference)
InvokeAsync<TValue>(String, CancellationToken, Object[])

Invokes the specified JavaScript function asynchronously.

(Inherited from JSObjectReference)
InvokeAsync<TValue>(String, Object[])

Invokes the specified JavaScript function asynchronously.

JSRuntime will apply timeouts to this operation based on the value configured in DefaultAsyncTimeout. To dispatch a call with a different, or no timeout, consider using InvokeAsync<TValue>(String, CancellationToken, Object[]).

(Inherited from JSObjectReference)
ThrowIfDisposed() (Inherited from JSObjectReference)

Explicit Interface Implementations

IJSStreamReference.OpenReadStreamAsync(Int64, CancellationToken)

Opens a Stream with the JSRuntime for the current data reference.

Extension Methods

InvokeAsync<TValue>(IJSObjectReference, String, Object[])

Invokes the specified JavaScript function asynchronously.

JSRuntime will apply timeouts to this operation based on the value configured in DefaultAsyncTimeout. To dispatch a call with a different timeout, or no timeout, consider using InvokeAsync<TValue>(String, CancellationToken, Object[]).

InvokeAsync<TValue>(IJSObjectReference, String, CancellationToken, Object[])

Invokes the specified JavaScript function asynchronously.

InvokeAsync<TValue>(IJSObjectReference, String, TimeSpan, Object[])

Invokes the specified JavaScript function asynchronously.

InvokeVoidAsync(IJSObjectReference, String, Object[])

Invokes the specified JavaScript function asynchronously.

InvokeVoidAsync(IJSObjectReference, String, CancellationToken, Object[])

Invokes the specified JavaScript function asynchronously.

InvokeVoidAsync(IJSObjectReference, String, TimeSpan, Object[])

Invokes the specified JavaScript function asynchronously.

Applies to