Share via


JSInProcessObjectReferenceExtensions.InvokeVoid Method

Definition

Invokes the specified JavaScript function synchronously.

public:
[System::Runtime::CompilerServices::Extension]
 static void InvokeVoid(Microsoft::JSInterop::IJSInProcessObjectReference ^ jsObjectReference, System::String ^ identifier, ... cli::array <System::Object ^> ^ args);
public static void InvokeVoid (this Microsoft.JSInterop.IJSInProcessObjectReference jsObjectReference, string identifier, params object?[] args);
public static void InvokeVoid (this Microsoft.JSInterop.IJSInProcessObjectReference jsObjectReference, string identifier, params object?[]? args);
static member InvokeVoid : Microsoft.JSInterop.IJSInProcessObjectReference * string * obj[] -> unit
<Extension()>
Public Sub InvokeVoid (jsObjectReference As IJSInProcessObjectReference, identifier As String, ParamArray args As Object())

Parameters

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.

Applies to