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