JSInProcessObjectReferenceExtensions.InvokeVoid 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
同步叫用指定的 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())
參數
- jsObjectReference
- IJSInProcessObjectReference
- identifier
- String
要叫用之函式的識別碼。 例如,值 "someScope.someFunction"
會在目標實例上叫用 函 someScope.someFunction
式。
- args
- Object[]
JSON 可序列化引數。