PageClientSetAdBlockingEnabledAsync Method |
Version 100.0.140
Enable Chrome's experimental ad filter on all sites.
Namespace:
CefSharp.DevTools.Page
Assembly:
CefSharp (in CefSharp.dll) Version: 100.0.140.0 (100.0.140.0)
Syntax public Task<DevToolsMethodResponse> SetAdBlockingEnabledAsync(
bool enabled
)
public:
Task<DevToolsMethodResponse^>^ SetAdBlockingEnabledAsync(
bool enabled
)
Parameters
- enabled
- Type: SystemBoolean
Whether to block ads.
Return Value
Type:
TaskDevToolsMethodResponsereturns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also