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 |
|
|
|
|
[!INCLUDE deprecation-note]
interface ICoreWebView2ServerCertificateErrorDetectedEventArgs
: public IUnknown
Event args for the ServerCertificateErrorDetected
event.
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. |
Product | Introduced |
---|---|
WebView2 Win32 | 1.0.1245.22 |
WebView2 Win32 Prerelease | 1.0.1248 |
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
.
The TLS error code for the invalid certificate.
public HRESULT get_ErrorStatus(COREWEBVIEW2_WEB_ERROR_STATUS * value)
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.
Returns the server certificate.
public HRESULT get_ServerCertificate(ICoreWebView2Certificate ** value)
Returns an ICoreWebView2Deferral object.
public HRESULT GetDeferral(ICoreWebView2Deferral ** deferral)
Use this operation to complete the event at a later time.
Sets the Action
property.
public HRESULT put_Action(COREWEBVIEW2_SERVER_CERTIFICATE_ERROR_ACTION value)