Click or drag to resize

TargetClientExposeDevToolsProtocolAsync Method

Version 89.0.170
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: 89.0.170.0 (89.0.170.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