IBrowserHostExecuteDevToolsMethod Method (Int32, String, IDictionaryString, Object) |
Version 85.3.121
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: 85.3.121.0 (85.3.121.0)
Syntax int ExecuteDevToolsMethod(
int messageId,
string method,
IDictionary<string, Object> parameters = null
)
int ExecuteDevToolsMethod(
int messageId,
String^ method,
IDictionary<String^, Object^>^ parameters = nullptr
)
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 - parameters (Optional)
- Type: System.Collections.GenericIDictionaryString, Object
are the method parameters represented as a dictionary,
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