TargetClientSetDiscoverTargetsAsync Method |
Version 113.3.50
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: 113.3.50.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