TargetClientExposeDevToolsProtocolAsync Method |
Version 107.1.120
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: 107.1.120.0 (107.1.120.0)
Syntax public Task<DevToolsMethodResponse> ExposeDevToolsProtocolAsync(
string targetId,
string bindingName = null
)
public:
Task<DevToolsMethodResponse^>^ ExposeDevToolsProtocolAsync(
String^ targetId,
String^ bindingName = nullptr
)
Parameters
- targetId
- Type: SystemString
targetId - bindingName (Optional)
- Type: SystemString
Binding name, 'cdp' if not specified.
Return Value
Type:
TaskDevToolsMethodResponsereturns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also