JSObjectReference Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Implements functionality for IJSObjectReference.
public ref class JSObjectReference : IAsyncDisposable, Microsoft::JSInterop::IJSObjectReference
public class JSObjectReference : IAsyncDisposable, Microsoft.JSInterop.IJSObjectReference
type JSObjectReference = class
interface IJSObjectReference
interface IAsyncDisposable
Public Class JSObjectReference
Implements IAsyncDisposable, IJSObjectReference
- Inheritance
-
JSObjectReference
- Derived
- Implements
Constructors
JSObjectReference(JSRuntime, Int64) |
Initializes a new JSObjectReference instance. |
Properties
Id |
The unique identifier assigned to this instance. |
Methods
DisposeAsync() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously. |
InvokeAsync<TValue>(String, CancellationToken, Object[]) |
Invokes the specified JavaScript function asynchronously. |
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[]). |
ThrowIfDisposed() | System.Object.ThrowIfDisposed |
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. |