Click or drag to resize

TargetClientExposeDevToolsProtocolAsync Method

Version 86.0.240
Inject object to the target's main frame that provides a communication channel with browser target. Injected object will be available as `window[bindingName]`. The object has the follwing API: - `binding.send(json)` - a method to send messages over the remote debugging protocol - `binding.onmessage = json => handleMessage(json)` - a callback that will be called for the protocol notifications and command responses.

Namespace:  CefSharp.DevTools.Target
Assembly:  CefSharp (in CefSharp.dll) Version: 86.0.240.0 (86.0.240.0)
Syntax
public Task<DevToolsMethodResponse> ExposeDevToolsProtocolAsync(
	string targetId,
	string bindingName = null
)

Parameters

targetId
Type: SystemString
targetId
bindingName (Optional)
Type: SystemString
Binding name, 'cdp' if not specified.

Return Value

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