Dela via


JSObjectReferenceExtensions Class

Definition

Extensions for IJSObjectReference.

public ref class JSObjectReferenceExtensions abstract sealed
public static class JSObjectReferenceExtensions
type JSObjectReferenceExtensions = class
Public Module JSObjectReferenceExtensions
Inheritance
JSObjectReferenceExtensions

Methods

GetValueAsync<TValue>(IJSObjectReference, String, TimeSpan)

Reads the value of the specified JavaScript property asynchronously.

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

Invokes the specified JavaScript function asynchronously.

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, TimeSpan, Object[])

Invokes the specified JavaScript function asynchronously.

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

Invokes the specified JavaScript constructor function asynchronously. The function is invoked with the new operator.

InvokeConstructorAsync(IJSObjectReference, String, Object[])

Invokes the specified JavaScript constructor function asynchronously. The function is invoked with the new operator.

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

Invokes the specified JavaScript constructor function asynchronously. The function is invoked with the new operator.

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

Invokes the specified JavaScript function asynchronously.

InvokeVoidAsync(IJSObjectReference, String, Object[])

Invokes the specified JavaScript function asynchronously.

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

Invokes the specified JavaScript function asynchronously.

SetValueAsync<TValue>(IJSObjectReference, String, TValue, TimeSpan)

Updates the value of the specified JavaScript property asynchronously. If the property is not defined on the target object, it will be created.

Applies to