Click or drag to resize

RuntimeClient.AddBindingAsync Method

Version 86.0.240
If executionContextId is empty, adds binding with the given name on the global objects of all inspected contexts, including those created later, bindings survive reloads. If executionContextId is specified, adds binding only on global object of given execution context. Binding function takes exactly one argument, this argument should be string, in case of any other input, function throws an exception. Each binding function call produces Runtime.bindingCalled notification.

Namespace:  CefSharp.DevTools.Runtime
Assembly:  CefSharp (in CefSharp.dll) Version: 86.0.240.0 (86.0.240.0)
Syntax
public Task<DevToolsMethodResponse> AddBindingAsync(
	string name,
	Nullable<int> executionContextId = null
)

Parameters

name
Type: System.String
name
executionContextId (Optional)
Type: System.Nullable<Int32>
executionContextId

Return Value

Type: Task<DevToolsMethodResponse>
returns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also