Click or drag to resize

IBrowserHostExecuteDevToolsMethod Method (Int32, String, String)

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,
	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: Int32
return the assigned message Id if called on the CEF UI thread and the message was successfully submitted for validation, otherwise 0
See Also