Click or drag to resize

TargetClientSetDiscoverTargetsAsync Method

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

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

Parameters

discover  Boolean
Whether to discover available targets.
filter  IListTargetFilter  (Optional)
Only targets matching filter will be attached. If `discover` is false,`filter` must be omitted or empty.

Return Value

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