TargetClientSetDiscoverTargetsAsync Method |
Version 111.2.70
Controls whether to discover available targets and notify via
`targetCreated/targetInfoChanged/targetDestroyed` events.
Namespace:
CefSharp.DevTools.Target
Assembly:
CefSharp (in CefSharp.dll) Version: 111.2.70.0 (111.2.70.0)
Syntax public Task<DevToolsMethodResponse> SetDiscoverTargetsAsync(
bool discover,
IList<TargetFilter> filter = null
)
public:
Task<DevToolsMethodResponse^>^ SetDiscoverTargetsAsync(
bool discover,
IList<TargetFilter^>^ filter = nullptr
)
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:
TaskDevToolsMethodResponsereturns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also