共用方式為


interface ICoreWebView2ServerCertificateErrorDetectedEventArgs

interface ICoreWebView2ServerCertificateErrorDetectedEventArgs
  : public IUnknown

Event args for the ServerCertificateErrorDetected event.

Summary

Members Descriptions
get_Action The action of the server certificate error detection.
get_ErrorStatus The TLS error code for the invalid certificate.
get_RequestUri URI associated with the request for the invalid certificate.
get_ServerCertificate Returns the server certificate.
GetDeferral Returns an ICoreWebView2Deferral object.
put_Action Sets the Action property.

Applies to

Product Introduced
WebView2 Win32 1.0.1245.22
WebView2 Win32 Prerelease 1.0.1248

Members

get_Action

The action of the server certificate error detection.

public HRESULT get_Action(COREWEBVIEW2_SERVER_CERTIFICATE_ERROR_ACTION * value)

The default value is COREWEBVIEW2_SERVER_CERTIFICATE_ERROR_ACTION_DEFAULT.

get_ErrorStatus

The TLS error code for the invalid certificate.

public HRESULT get_ErrorStatus(COREWEBVIEW2_WEB_ERROR_STATUS * value)

get_RequestUri

URI associated with the request for the invalid certificate.

public HRESULT get_RequestUri(LPWSTR * value)

The caller must free the returned string with CoTaskMemFree. See API Conventions.

get_ServerCertificate

Returns the server certificate.

public HRESULT get_ServerCertificate(ICoreWebView2Certificate ** value)

GetDeferral

Returns an ICoreWebView2Deferral object.

public HRESULT GetDeferral(ICoreWebView2Deferral ** deferral)

Use this operation to complete the event at a later time.

put_Action

Sets the Action property.

public HRESULT put_Action(COREWEBVIEW2_SERVER_CERTIFICATE_ERROR_ACTION value)