CoreWebView2PermissionRequestedEventArgs.SavesInProfile Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public bool SavesInProfile { get; set; }
member this.SavesInProfile : bool with get, set
Public Property SavesInProfile As Boolean
Property Value
Remarks
The permission state set from the PermissionRequested
event is saved in the profile by default; it is persisted across sessions and becomes the new default behavior for future PermissionRequested
events. Browser heuristics can affect whether the event continues to be raised when the state is persisted.