interface ICoreWebView2PermissionRequestedEventArgs3
Note
This reference is no longer being maintained. For the latest API reference, see WebView2 API Reference.
interface ICoreWebView2PermissionRequestedEventArgs3
: public ICoreWebView2PermissionRequestedEventArgs2
This is a continuation of the ICoreWebView2PermissionRequestedEventArgs2 interface.
Members | Descriptions |
---|---|
get_SavesInProfile | Gets the SavesInProfile property. |
put_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. |
Product | Introduced |
---|---|
WebView2 Win32 | 1.0.1661.34 |
WebView2 Win32 Prerelease | 1.0.1671 |
Gets the SavesInProfile
property.
public HRESULT get_SavesInProfile(BOOL * value)
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 put_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.