次の方法で共有


CoreWebView2WebErrorStatus Enum

Definition

Indicates the error status values for web navigations.

public enum CoreWebView2WebErrorStatus
type CoreWebView2WebErrorStatus = 
Public Enum CoreWebView2WebErrorStatus
Inheritance
CoreWebView2WebErrorStatus

Fields

Name Value Description
Unknown 0

Indicates that an unknown error occurred.

CertificateCommonNameIsIncorrect 1

Indicates that the SSL certificate common name does not match the web address.

CertificateExpired 2

Indicates that the SSL certificate has expired.

ClientCertificateContainsErrors 3

Indicates that the SSL client certificate contains errors.

CertificateRevoked 4

Indicates that the SSL certificate has been revoked.

CertificateIsInvalid 5

Indicates that the SSL certificate is not valid. The certificate may not match the public key pins for the host name, the certificate is signed by an untrusted authority or using a weak sign algorithm, the certificate claimed DNS names violate name constraints, the certificate contains a weak key, the validity period of the certificate is too long, lack of revocation information or revocation mechanism, non-unique host name, lack of certificate transparency information, or the certificate is chained to a legacy Symantec root.

ServerUnreachable 6

Indicates that the host is unreachable.

Timeout 7

Indicates that the connection has timed out.

ErrorHttpInvalidServerResponse 8

Indicates that the server returned an invalid or unrecognized response.

ConnectionAborted 9

Indicates that the connection was stopped.

ConnectionReset 10

Indicates that the connection was reset.

Disconnected 11

Indicates that the Internet connection has been lost.

CannotConnect 12

Indicates that a connection to the destination was not established.

HostNameNotResolved 13

Indicates that the provided host name was not able to be resolved.

OperationCanceled 14

Indicates that the operation was canceled. This status code is also used in the following cases: - When the app cancels a navigation via NavigationStarting event. - For original navigation if the app navigates the WebView2 in a rapid succession away after the load for original navigation commenced, but before it completed.

RedirectFailed 15

Indicates that the request redirect failed.

UnexpectedError 16

Indicates that an unexpected error occurred.

ValidAuthenticationCredentialsRequired 17

Indicates that user is prompted with a login, waiting on user action. Initial navigation to a login site will always return this even if app provides credential using BasicAuthenticationRequested. HTTP response status code in this case is 401. See status code reference here: https://developer.mozilla.org/docs/Web/HTTP/Status.

ValidProxyAuthenticationRequired 18

Indicates that user lacks proper authentication credentials for a proxy server. HTTP response status code in this case is 407. See status code reference here: https://developer.mozilla.org/docs/Web/HTTP/Status.

Applies to