Skip to content

Latest commit

 

History

History
94 lines (63 loc) · 3.42 KB

icorewebview2servercertificateerrordetectedeventargs.md

File metadata and controls

94 lines (63 loc) · 3.42 KB
description title ms.date keywords topic_type api_name api_type api_location
Event args for the `ServerCertificateErrorDetected` event.
WebView2 Win32 C++ ICoreWebView2ServerCertificateErrorDetectedEventArgs
04/22/2024
IWebView2, IWebView2WebView, webview2, webview, win32 apps, win32, edge, ICoreWebView2, ICoreWebView2Controller, browser control, edge html, ICoreWebView2ServerCertificateErrorDetectedEventArgs
APIRef
ICoreWebView2ServerCertificateErrorDetectedEventArgs
ICoreWebView2ServerCertificateErrorDetectedEventArgs.get_Action
ICoreWebView2ServerCertificateErrorDetectedEventArgs.get_ErrorStatus
ICoreWebView2ServerCertificateErrorDetectedEventArgs.get_RequestUri
ICoreWebView2ServerCertificateErrorDetectedEventArgs.get_ServerCertificate
ICoreWebView2ServerCertificateErrorDetectedEventArgs.GetDeferral
ICoreWebView2ServerCertificateErrorDetectedEventArgs.put_Action
COM
embeddedbrowserwebview.dll

interface ICoreWebView2ServerCertificateErrorDetectedEventArgs

[!INCLUDE deprecation-note]

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)