Click or drag to resize

TargetClientSetDiscoverTargetsAsync Method

Version 108.4.130
Controls whether to discover available targets and notify via `targetCreated/targetInfoChanged/targetDestroyed` events.

Namespace:  CefSharp.DevTools.Target
Assembly:  CefSharp (in CefSharp.dll) Version: 108.4.130.0 (108.4.130.0)
Syntax
public Task<DevToolsMethodResponse> SetDiscoverTargetsAsync(
	bool discover,
	IList<TargetFilter> filter = null
)

Parameters

discover
Type: SystemBoolean
Whether to discover available targets.
filter (Optional)
Type: System.Collections.GenericIListTargetFilter
Only targets matching filter will be attached. If `discover` is false,`filter` must be omitted or empty.

Return Value

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