Dela via


JSObjectReferenceExtensions.InvokeVoidAsync Method

Definition

Overloads

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.

InvokeVoidAsync(IJSObjectReference, String, Object[])

Source:
JSObjectReferenceExtensions.cs
Source:
JSObjectReferenceExtensions.cs
Source:
JSObjectReferenceExtensions.cs
Source:
JSObjectReferenceExtensions.cs
Source:
JSObjectReferenceExtensions.cs

Invokes the specified JavaScript function asynchronously.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::ValueTask InvokeVoidAsync(Microsoft::JSInterop::IJSObjectReference ^ jsObjectReference, System::String ^ identifier, ... cli::array <System::Object ^> ^ args);
public static System.Threading.Tasks.ValueTask InvokeVoidAsync (this Microsoft.JSInterop.IJSObjectReference jsObjectReference, string identifier, params object?[] args);
public static System.Threading.Tasks.ValueTask InvokeVoidAsync (this Microsoft.JSInterop.IJSObjectReference jsObjectReference, string identifier, params object?[]? args);
static member InvokeVoidAsync : Microsoft.JSInterop.IJSObjectReference * string * obj[] -> System.Threading.Tasks.ValueTask
<Extension()>
Public Function InvokeVoidAsync (jsObjectReference As IJSObjectReference, identifier As String, ParamArray args As Object()) As ValueTask

Parameters

jsObjectReference
IJSObjectReference

The IJSObjectReference.

identifier
String

An identifier for the function to invoke. For example, the value "someScope.someFunction" will invoke the function someScope.someFunction on the target instance.

args
Object[]

JSON-serializable arguments.

Returns

A ValueTask that represents the asynchronous invocation operation.

Applies to

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

Source:
JSObjectReferenceExtensions.cs
Source:
JSObjectReferenceExtensions.cs
Source:
JSObjectReferenceExtensions.cs
Source:
JSObjectReferenceExtensions.cs
Source:
JSObjectReferenceExtensions.cs

Invokes the specified JavaScript function asynchronously.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::ValueTask InvokeVoidAsync(Microsoft::JSInterop::IJSObjectReference ^ jsObjectReference, System::String ^ identifier, System::Threading::CancellationToken cancellationToken, ... cli::array <System::Object ^> ^ args);
public static System.Threading.Tasks.ValueTask InvokeVoidAsync (this Microsoft.JSInterop.IJSObjectReference jsObjectReference, string identifier, System.Threading.CancellationToken cancellationToken, params object?[] args);
public static System.Threading.Tasks.ValueTask InvokeVoidAsync (this Microsoft.JSInterop.IJSObjectReference jsObjectReference, string identifier, System.Threading.CancellationToken cancellationToken, params object?[]? args);
static member InvokeVoidAsync : Microsoft.JSInterop.IJSObjectReference * string * System.Threading.CancellationToken * obj[] -> System.Threading.Tasks.ValueTask
<Extension()>
Public Function InvokeVoidAsync (jsObjectReference As IJSObjectReference, identifier As String, cancellationToken As CancellationToken, ParamArray args As Object()) As ValueTask

Parameters

jsObjectReference
IJSObjectReference

The IJSObjectReference.

identifier
String

An identifier for the function to invoke. For example, the value "someScope.someFunction" will invoke the function someScope.someFunction on the target instance.

cancellationToken
CancellationToken

A cancellation token to signal the cancellation of the operation. Specifying this parameter will override any default cancellations such as due to timeouts (DefaultAsyncTimeout) from being applied.

args
Object[]

JSON-serializable arguments.

Returns

A ValueTask that represents the asynchronous invocation operation.

Applies to

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

Source:
JSObjectReferenceExtensions.cs
Source:
JSObjectReferenceExtensions.cs
Source:
JSObjectReferenceExtensions.cs
Source:
JSObjectReferenceExtensions.cs
Source:
JSObjectReferenceExtensions.cs

Invokes the specified JavaScript function asynchronously.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::ValueTask InvokeVoidAsync(Microsoft::JSInterop::IJSObjectReference ^ jsObjectReference, System::String ^ identifier, TimeSpan timeout, ... cli::array <System::Object ^> ^ args);
public static System.Threading.Tasks.ValueTask InvokeVoidAsync (this Microsoft.JSInterop.IJSObjectReference jsObjectReference, string identifier, TimeSpan timeout, params object?[] args);
public static System.Threading.Tasks.ValueTask InvokeVoidAsync (this Microsoft.JSInterop.IJSObjectReference jsObjectReference, string identifier, TimeSpan timeout, params object?[]? args);
static member InvokeVoidAsync : Microsoft.JSInterop.IJSObjectReference * string * TimeSpan * obj[] -> System.Threading.Tasks.ValueTask
<Extension()>
Public Function InvokeVoidAsync (jsObjectReference As IJSObjectReference, identifier As String, timeout As TimeSpan, ParamArray args As Object()) As ValueTask

Parameters

jsObjectReference
IJSObjectReference

The IJSObjectReference.

identifier
String

An identifier for the function to invoke. For example, the value "someScope.someFunction" will invoke the function someScope.someFunction on the target instance.

timeout
TimeSpan

The duration after which to cancel the async operation. Overrides default timeouts (DefaultAsyncTimeout).

args
Object[]

JSON-serializable arguments.

Returns

A ValueTask that represents the asynchronous invocation operation.

Applies to