interface ICoreWebView2Profile5
interface ICoreWebView2Profile5
: public ICoreWebView2Profile4
This is the ICoreWebView2Profile interface for cookie manager.
Summary
Members | Descriptions |
---|---|
get_CookieManager | Get the cookie manager for the profile. |
Applies to
Product | Introduced |
---|---|
WebView2 Win32 | 1.0.1774.30 |
WebView2 Win32 Prerelease | 1.0.1777 |
Members
get_CookieManager
Get the cookie manager for the profile.
public HRESULT get_CookieManager(ICoreWebView2CookieManager ** cookieManager)
All CoreWebView2s associated with this profile share the same cookie values. Changes to cookies in this cookie manager apply to all CoreWebView2s associated with this profile. See ICoreWebView2CookieManager.
auto webView2_13 = m_webView.try_query<ICoreWebView2_13>();
CHECK_FEATURE_RETURN_EMPTY(webView2_13);
wil::com_ptr<ICoreWebView2Profile> webView2Profile;
CHECK_FAILURE(webView2_13->get_Profile(&webView2Profile));
auto webView2Profile5 = webView2Profile.try_query<ICoreWebView2Profile5>();
CHECK_FEATURE_RETURN_EMPTY(webView2Profile5);
CHECK_FAILURE(webView2Profile5->get_CookieManager(&m_cookieManager));
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기