Method InvokeVoidSafeAsync
InvokeVoidSafeAsync(IJSObjectReference, string, params object?[]?)
Invokes the specified JavaScript function asynchronously with JS exception handling.
Declaration
public static ValueTask InvokeVoidSafeAsync(this IJSObjectReference jsObjectReference, string identifier, params object?[]? args)
Parameters
Type | Name | Description |
---|---|---|
IJSObjectReference | jsObjectReference | The IJSObjectReference. |
string | identifier | An identifier for the function to invoke. For example, the value |
object[] | args | JSON-serializable arguments. |
Returns
Type | Description |
---|---|
ValueTask | A ValueTask that represents the asynchronous invocation operation. |