interface ICoreWebView2ExperimentalServerCertificateErrorDetectedEventArgs

Note

This reference is no longer being maintained. For the latest API reference, see WebView2 API Reference.

Note

This an experimental API that is shipped with our prerelease SDK. See WebView2 release notes.

interface ICoreWebView2ExperimentalServerCertificateErrorDetectedEventArgs
  : 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 N/A
WebView2 Win32 Prerelease

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(ICoreWebView2ExperimentalCertificate ** 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)