IBrowserHostExecuteDevToolsMethod Method (Int32, String, String) |
Version 112.3.0
Execute a method call over the DevTools protocol. This is a more structured
version of SendDevToolsMessage.
See the DevTools protocol documentation at https://chromedevtools.github.io/devtools-protocol/ for details
of supported methods and the expected paramsAsJson dictionary contents.
See the SendDevToolsMessage documentation for additional usage information.
Namespace:
CefSharp
Assembly:
CefSharp (in CefSharp.dll) Version: 112.3.0.0 (112.3.0.0)
Syntax int ExecuteDevToolsMethod(
int messageId,
string method,
string paramsAsJson
)
int ExecuteDevToolsMethod(
int messageId,
String^ method,
String^ paramsAsJson
)
Parameters
- messageId
- Type: SystemInt32
is an incremental number that uniquely identifies the message (pass 0 to have the next number assigned
automatically based on previous values) - method
- Type: SystemString
is the method name - paramsAsJson
- Type: SystemString
are the method parameters represented as a JSON string,
which may be empty.
Return Value
Type:
Int32return the assigned message Id if called on the CEF UI thread and the message was
successfully submitted for validation, otherwise 0
See Also