IDownloadHandlerCanDownload Method |
Version 111.2.70
Called before a download begins in response to a user-initiated action
(e.g. alt + link click or link click that returns a `Content-Disposition:
attachment` response from the server).
Namespace:
CefSharp
Assembly:
CefSharp (in CefSharp.dll) Version: 111.2.70.0 (111.2.70.0)
Syntax bool CanDownload(
IWebBrowser chromiumWebBrowser,
IBrowser browser,
string url,
string requestMethod
)
bool CanDownload(
IWebBrowser^ chromiumWebBrowser,
IBrowser^ browser,
String^ url,
String^ requestMethod
)
Parameters
- chromiumWebBrowser
- Type: CefSharpIWebBrowser
the ChromiumWebBrowser control - browser
- Type: CefSharpIBrowser
The browser instance - url
- Type: SystemString
is the target download URL - requestMethod
- Type: SystemString
is the target method (GET, POST, etc)
Return Value
Type:
BooleanReturn true to proceed with the download or false to cancel the download.
See Also