TxDownloadInterruptReason
Download interrupt reason enumeration.
The OnDownloadStarting event has a parameter DownloadOperation of data type AntViewDownloadOperation which contains the interruptReason.
Constants for enum CoreWebView2DownloadInterruptReason
dirNone:
No reason.
dirFileFailed:
Generic file error
dirFileAccessDenied:
File access not allowed for security reasons.
dirFileNoSpace:
Not sufficient free disk space at the folder where the file is being saved.
dirFileNameTooLong:
The combinated length of the path and filename together is longer than the file system allows.
dirFileTooLarge:
The downloaded file is larger than the file system allows.
dirFileMalicious:
Microsoft Defender SmartScreen tagged the file as unsafe.
dirFileTransientError:
Download failed due to either, file in use, too many open files or running out of memory.
dirFileBlockedByPolicy:
A policy blocked the file download.
dirFileSecurityCheckFailed:
Microsoft Defender was unable to scan this file. This caused the security check to fail.
dirFileTooShort:
Partially downloaded file, download will restart automatically.
dirFileHashMismatch:
Partially downloaded file did not match the expect hash, download will be restarted automatically.
dirNetworkFailed:
Generic network error. Download will not restart automatically.
dirNetworkTimedOut:
Time out at the network layer.
dirNetworkDisconnected:
Network disconnected while downloading. Download will not restart automatically.
dirNetworkServerDown:
Server became unreachable. Download will not restart automatically.
dirNetworkInvalidRequest:
Invalid network request.
dirServerFailed:
Server failed serving the download. Retry manually.
dirServerNoRange:
Server does not offer to download by range, can only download the file in full.
dirServerBadContent:
The file requested is not available for download.
dirServerUnauthorized:
Downloading the requested file is not authorized by the server.
dirServerCertificateProblem:
Unable to download the file due to a problem with the certificate.
dirServerForbidden:
Forbidden to access the server.
dirServerUnexpectedResponse:
Response from the server was unexpected.
dirServerContentLengthMismatch:
Received file is a few bytes smaller than was presented by the http Content-Length header.
dirServerCrossOriginRedirect:
Cross-origin redirect by the server was unexpected.
dirUserCanceled:
User canceled the download.
dirUserShutdown:
User closed the webview. Resuming the download is not possible.
dirUserPaused:
User paused the download.
dirDownloadProcessCrashed:
Webview used to download the file crashed.
AntView - The MS Edge WebView2 ActiveX control Date last changed: 09/25/2024