Click or drag to resize

TargetClientAutoAttachRelatedAsync Method

Version 99.2.120
Adds the specified target to the list of targets that will be monitored for any related target creation (such as child frames, child workers and new versions of service worker) and reported through `attachedToTarget`. The specified target is also auto-attached. This cancels the effect of any previous `setAutoAttach` and is also cancelled by subsequent `setAutoAttach`. Only available at the Browser target.

Namespace:  CefSharp.DevTools.Target
Assembly:  CefSharp (in CefSharp.dll) Version: 99.2.120.0 (99.2.120.0)
Syntax
public Task<DevToolsMethodResponse> AutoAttachRelatedAsync(
	string targetId,
	bool waitForDebuggerOnStart
)

Parameters

targetId
Type: SystemString
targetId
waitForDebuggerOnStart
Type: SystemBoolean
Whether to pause new targets when attaching to them. Use `Runtime.runIfWaitingForDebugger`to run paused targets.

Return Value

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