Class V142Target
Class providing functionality for manipulating targets for version 142 of the DevTools Protocol
public class V142Target : Target- Inheritance
- 
      
      
      V142Target
- Inherited Members
Constructors
V142Target(TargetAdapter)
Initializes a new instance of the V142Target class.
public V142Target(TargetAdapter adapter)Parameters
- adapterTargetAdapter
- The adapter for the Target domain. 
Exceptions
- ArgumentNullException
- If - adapteris null.
Methods
AttachToTarget(string)
Asynchronously attaches to a target.
public override Task<string> AttachToTarget(string targetId)Parameters
- targetIdstring
- The ID of the target to which to attach. 
Returns
- Task<string>
- A task representing the asynchronous attach operation. The task result contains the session ID established for commands to the target attached to. 
DetachFromTarget(string?, string?)
Asynchronously detaches from a target.
public override Task DetachFromTarget(string? sessionId = null, string? targetId = null)Parameters
- sessionIdstring
- The ID of the session of the target from which to detach. 
- targetIdstring
- The ID of the target from which to detach. 
Returns
- Task
- A task representing the asynchronous detach operation. 
GetTargets(object?)
Asynchronously gets the targets available for this session.
public override Task<ReadOnlyCollection<TargetInfo>> GetTargets(object? settings = null)Parameters
- settingsobject
Returns
- Task<ReadOnlyCollection<TargetInfo>>
- A task that represents the asynchronous operation. The task result contains the list of TargetInfo objects describing the targets available for this session. 
SetAutoAttach()
Asynchronously sets the DevTools Protocol connection to automatically attach to new targets.
public override Task SetAutoAttach()Returns
- Task
- A task that represents the asynchronous operation.