CoreWebView2.CallDevToolsProtocolMethodAsync(String, String) Method

Definition

Runs an asynchronous DevToolsProtocol method.

public System.Threading.Tasks.Task<string> CallDevToolsProtocolMethodAsync (string methodName, string parametersAsJson);
member this.CallDevToolsProtocolMethodAsync : string * string -> System.Threading.Tasks.Task<string>
Public Function CallDevToolsProtocolMethodAsync (methodName As String, parametersAsJson As String) As Task(Of String)

Parameters

methodName
String

The full name of the method in the format {domain}.{method}

parametersAsJson
String

A JSON formatted string containing the parameters for the corresponding method.

Returns

Task<String>

A JSON string that represents the method's return object.

Remarks

For more information about available methods, navigate to DevTools Protocol Viewer. The handler's Invoke method will be called when the method asynchronously completes. Invoke will be called with the method's return object as a JSON string.

Applies to