CoreWebView2EnvironmentOptions Class
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.
Options used to create WebView2 Environment.
public class CoreWebView2EnvironmentOptions
type CoreWebView2EnvironmentOptions = class
Public Class CoreWebView2EnvironmentOptions
- Inheritance
-
CoreWebView2EnvironmentOptions
Remarks
Default values will use your defaulted Edge WebView2 Runtime binaries and user data folder.
Constructors
CoreWebView2EnvironmentOptions(String, String, String, Boolean, List<CoreWebView2CustomSchemeRegistration>, CoreWebView2ReleaseChannels, CoreWebView2ChannelSearchKind) |
Initializes a new instance of the CoreWebView2EnvironmentOptions class. |
CoreWebView2EnvironmentOptions(String, String, String, Boolean, List<CoreWebView2CustomSchemeRegistration>) |
Initializes a new instance of the CoreWebView2EnvironmentOptions class. |
CoreWebView2EnvironmentOptions(String, String, String, Boolean) |
Initializes a new instance of the CoreWebView2EnvironmentOptions class. |
CoreWebView2EnvironmentOptions(String, String, String) |
Properties
AdditionalBrowserArguments |
Gets or sets the additional browser arguments to change the behavior of the WebView. |
AllowSingleSignOnUsingOSPrimaryAccount |
Determines whether to enable single sign on with Azure Active Directory (AAD) resources inside WebView using the logged in Windows account and single sign on (SSO) with web sites using Microsoft account associated with the login in Windows account. |
AreBrowserExtensionsEnabled |
Enable/disable browser extensions. |
ChannelSearchKind |
Set |
CustomSchemeRegistrations |
List of custom scheme registrations to be applied to the CoreWebView2Environment |
EnableTrackingPrevention |
The EnableTrackingPrevention property is used to enable/disable tracking prevention feature in WebView2. This property enable/disable tracking prevention for all the WebView2's created in the same environment. By default this feature is enabled to block potentially harmful trackers and trackers from sites that aren't visited before and set to @CoreWebView2TrackingPreventionLevel$.Balanced or whatever value was last changed/persisted on the profile. |
ExclusiveUserDataFolderAccess |
Determines whether other processes can create CoreWebView2Controller from CoreWebView2Environment created with the same user data folder and therefore sharing the same WebView browser process instance. |
IsCustomCrashReportingEnabled |
When |
Language |
Gets or sets the default display language for WebView. |
ReleaseChannels |
Sets the |
ScrollBarStyle | |
TargetCompatibleBrowserVersion |
Gets or sets the version of the WebView2 Runtime binaries required to be compatible with your app. |