JSInProcessRuntimeExtensions.InvokeVoid Method
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.
Invokes the specified JavaScript function synchronously.
public:
[System::Runtime::CompilerServices::Extension]
static void InvokeVoid(Microsoft::JSInterop::IJSInProcessRuntime ^ jsRuntime, System::String ^ identifier, ... cli::array <System::Object ^> ^ args);
public static void InvokeVoid (this Microsoft.JSInterop.IJSInProcessRuntime jsRuntime, string identifier, params object[] args);
public static void InvokeVoid (this Microsoft.JSInterop.IJSInProcessRuntime jsRuntime, string identifier, params object?[] args);
public static void InvokeVoid (this Microsoft.JSInterop.IJSInProcessRuntime jsRuntime, string identifier, params object?[]? args);
static member InvokeVoid : Microsoft.JSInterop.IJSInProcessRuntime * string * obj[] -> unit
<Extension()>
Public Sub InvokeVoid (jsRuntime As IJSInProcessRuntime, identifier As String, ParamArray args As Object())
Parameters
- jsRuntime
- IJSInProcessRuntime
The IJSInProcessRuntime.
- identifier
- String
An identifier for the function to invoke. For example, the value "someScope.someFunction"
will invoke the function window.someScope.someFunction
.
- args
- Object[]
JSON-serializable arguments.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for