Share via


CoreWebView2Profile.EnhancedSecurityModeLevel Property

Definition

The EnhancedSecurityModeLevel property allows you to control the Enhanced Security Mode level for WebView2 instances associated with a profile. This level applies to the context of the profile. That is, all WebViews sharing the same profile are affected. The configuration is not persisted to the user data folder. The property is reset when the profile is recreated.

The default value is CoreWebView2EnhancedSecurityModeLevel.Off.

When set to Off, Enhanced Security Mode is disabled. When set to Strict, the Enhanced Security Mode feature is enabled in Strict level.

See CoreWebView2EnhancedSecurityModeLevel for descriptions of levels.

public Microsoft.Web.WebView2.Core.CoreWebView2EnhancedSecurityModeLevel EnhancedSecurityModeLevel { get; set; }
member this.EnhancedSecurityModeLevel : Microsoft.Web.WebView2.Core.CoreWebView2EnhancedSecurityModeLevel with get, set
Public Property EnhancedSecurityModeLevel As CoreWebView2EnhancedSecurityModeLevel

Property Value

Remarks

Changes apply immediately to new navigation. Existing pages require a reload for the change to take effect.

Applies to