JSInProcessObjectReferenceExtensions.InvokeVoid 方法

定义

同步调用指定的 JavaScript 函数。

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())

参数

identifier
String

要调用的函数的标识符。 例如,值 "someScope.someFunction" 将在目标实例上调用 函数 someScope.someFunction

args
Object[]

JSON 可序列化参数。

适用于