TargetClientExposeDevToolsProtocolAsync Method |
Version 130.1.90
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 following 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.TargetAssembly: CefSharp.Core (in CefSharp.Core.dll) Version: 129.0.110.0
Syntax public Task<DevToolsMethodResponse> ExposeDevToolsProtocolAsync(
string targetId,
string bindingName = null
)
public:
Task<DevToolsMethodResponse^>^ ExposeDevToolsProtocolAsync(
String^ targetId,
String^ bindingName = nullptr
)
Parameters
- targetId String
- targetId
- bindingName String (Optional)
- Binding name, 'cdp' if not specified.
Return Value
TaskDevToolsMethodResponsereturns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also