共用方式為


CoreWebView2DownloadInterruptReason Enum

Definition

Reason why a download was interrupted.

public enum CoreWebView2DownloadInterruptReason
type CoreWebView2DownloadInterruptReason = 
Public Enum CoreWebView2DownloadInterruptReason
Inheritance
CoreWebView2DownloadInterruptReason

Fields

Name Value Description
None 0

No interrupt reason.

FileFailed 1

Generic file error.

FileAccessDenied 2

Access denied due to security restrictions.

FileNoSpace 3

Disk full. User should free some space or choose a different location to store the file.

FileNameTooLong 4

Result file path with file name is too long.

FileTooLarge 5

File is too large for file system.

FileMalicious 6

Microsoft Defender Smartscreen detected a virus in the file.

FileTransientError 7

File was in use, too many files opened, or out of memory.

FileBlockedByPolicy 8

File blocked by local policy.

FileSecurityCheckFailed 9

Security check failed unexpectedly. Microsoft Defender SmartScreen could not scan this file.

FileTooShort 10

Seeking past the end of a file in opening a file, as part of resuming an interrupted download. The file did not exist or was not as large as expected. Partially downloaded file was truncated or deleted, and download will be restarted automatically.

FileHashMismatch 11

Partial file did not match the expected hash and was deleted. Download will be restarted automatically.

NetworkFailed 12

Generic network error. User can retry the download manually.

NetworkTimeout 13

Network operation timed out.

NetworkDisconnected 14

Network connection lost. User can retry the download manually.

NetworkServerDown 15

Server has gone down. User can retry the download manually.

NetworkInvalidRequest 16

Network request invalid because original or redirected URI is invalid, has an unsupported scheme, or is disallowed by network policy.

ServerFailed 17

Generic server error. User can retry the download manually.

ServerNoRange 18

Server does not support range requests.

ServerBadContent 19

Server does not have the requested data.

ServerUnauthorized 20

Server did not authorize access to resource.

ServerCertificateProblem 21

Server certificate problem.

ServerForbidden 22

Server access forbidden.

ServerUnexpectedResponse 23

Unexpected server response. Responding server may not be intended server. User can retry the download manually.

ServerContentLengthMismatch 24

Server sent fewer bytes than the Content-Length header. Content-length header may be invalid or connection may have closed. Download is treated as complete unless there are strong validators present to interrupt the download.

ServerCrossOriginRedirect 25

Unexpected cross-origin redirect.

UserCanceled 26

User canceled the download.

UserShutdown 27

User shut down the WebView. Resuming downloads that were interrupted during shutdown is not yet supported.

UserPaused 28

User paused the download.

DownloadProcessCrashed 29

WebView crashed.

Applies to