interface ICoreWebView2PermissionRequestedEventArgs3
interface ICoreWebView2PermissionRequestedEventArgs3
: public ICoreWebView2PermissionRequestedEventArgs2
This is a continuation of the ICoreWebView2PermissionRequestedEventArgs2 interface.
Summary
Members | Descriptions |
---|---|
get_SavesInProfile | The permission state set from the PermissionRequested event is saved in the profile by default; it persists across sessions and becomes the new default behavior for future PermissionRequested events. |
put_SavesInProfile | Sets the SavesInProfile property. |
Applies to
Product | Introduced |
---|---|
WebView2 Win32 | 1.0.1661.34 |
WebView2 Win32 Prerelease | 1.0.1671 |
Members
get_SavesInProfile
The permission state set from the PermissionRequested
event is saved in the profile by default; it persists across sessions and becomes the new default behavior for future PermissionRequested
events.
public HRESULT get_SavesInProfile(BOOL * value)
Browser heuristics can affect whether the event continues to be raised when the state is saved in the profile. Set the SavesInProfile
property to FALSE
to not persist the state beyond the current request, and to continue to receive PermissionRequested
events for this origin and permission kind.
put_SavesInProfile
Sets the SavesInProfile
property.
public HRESULT put_SavesInProfile(BOOL value)
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應