TargetClientAutoAttachRelatedAsync Method |
Version 130.1.90
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.TargetAssembly: CefSharp.Core (in CefSharp.Core.dll) Version: 129.0.110.0
Syntax public Task<DevToolsMethodResponse> AutoAttachRelatedAsync(
string targetId,
bool waitForDebuggerOnStart,
IList<TargetFilter> filter = null
)
public:
Task<DevToolsMethodResponse^>^ AutoAttachRelatedAsync(
String^ targetId,
bool waitForDebuggerOnStart,
IList<TargetFilter^>^ filter = nullptr
)
Parameters
- targetId String
- targetId
- waitForDebuggerOnStart Boolean
- Whether to pause new targets when attaching to them. Use `Runtime.runIfWaitingForDebugger`to run paused targets.
- filter IListTargetFilter (Optional)
- Only targets matching filter will be attached.
Return Value
TaskDevToolsMethodResponsereturns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also