DownloadHandlerCanDownload Method |
Version 130.1.90
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.HandlerAssembly: CefSharp (in CefSharp.dll) Version: 129.0.110.0 (129.0.110.0)
Syntax protected virtual bool CanDownload(
IWebBrowser chromiumWebBrowser,
IBrowser browser,
string url,
string requestMethod
)
protected:
virtual bool CanDownload(
IWebBrowser^ chromiumWebBrowser,
IBrowser^ browser,
String^ url,
String^ requestMethod
)
Parameters
- chromiumWebBrowser IWebBrowser
- the ChromiumWebBrowser control
- browser IBrowser
- The browser instance
- url String
- is the target download URL
- requestMethod String
- is the target method (GET, POST, etc)
Return Value
BooleanReturn true to proceed with the download or false to cancel the download.
See Also