Click or drag to resize

IBrowserHostExecuteDevToolsMethod Method (Int32, String, IDictionaryString, Object)

Version 92.0.260
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: 92.0.260.0 (92.0.260.0)
Syntax
int ExecuteDevToolsMethod(
	int messageId,
	string method,
	IDictionary<string, Object> parameters = null
)

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: 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