Share via


JSInProcessObjectReference Class

Definition

Implements functionality for IJSInProcessObjectReference.

public ref class JSInProcessObjectReference : Microsoft::JSInterop::Implementation::JSObjectReference, IAsyncDisposable, IDisposable, Microsoft::JSInterop::IJSInProcessObjectReference
public class JSInProcessObjectReference : Microsoft.JSInterop.Implementation.JSObjectReference, IAsyncDisposable, IDisposable, Microsoft.JSInterop.IJSInProcessObjectReference
type JSInProcessObjectReference = class
    inherit JSObjectReference
    interface IJSInProcessObjectReference
    interface IJSObjectReference
    interface IAsyncDisposable
    interface IDisposable
Public Class JSInProcessObjectReference
Inherits JSObjectReference
Implements IAsyncDisposable, IDisposable, IJSInProcessObjectReference
Inheritance
JSInProcessObjectReference
Implements

Constructors

JSInProcessObjectReference(JSInProcessRuntime, Int64)

Initializes a new JSInProcessObjectReference instance.

Properties

Id

The unique identifier assigned to this instance.

(Inherited from JSObjectReference)

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

DisposeAsync() (Inherited from JSObjectReference)
GetValue<TValue>(String)

Reads the value of the specified JavaScript property synchronously.

GetValueAsync<TValue>(String, CancellationToken)

Reads the value of the specified JavaScript property asynchronously.

(Inherited from JSObjectReference)
GetValueAsync<TValue>(String)

Reads the value of the specified JavaScript property asynchronously.

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

Invokes the specified JavaScript function synchronously.

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)
InvokeNew(String, Object[])

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

InvokeNewAsync(String, CancellationToken, Object[])

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

(Inherited from JSObjectReference)
InvokeNewAsync(String, Object[])

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

(Inherited from JSObjectReference)
SetValue<TValue>(String, TValue)

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

SetValueAsync<TValue>(String, TValue, CancellationToken)

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

(Inherited from JSObjectReference)
SetValueAsync<TValue>(String, TValue)

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

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

Extension Methods

InvokeVoid(IJSInProcessObjectReference, String, Object[])

Invokes the specified JavaScript function synchronously.

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.

InvokeNewAsync(IJSObjectReference, String, Object[])

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

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

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

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

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

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