CoreWebView2EnvironmentOptions Constructors

Definition

Overloads

CoreWebView2EnvironmentOptions(String, String, String)
CoreWebView2EnvironmentOptions(String, String, String, Boolean)

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, List<CoreWebView2CustomSchemeRegistration>, CoreWebView2ReleaseChannels, CoreWebView2ChannelSearchKind)

Initializes a new instance of the CoreWebView2EnvironmentOptions class.

CoreWebView2EnvironmentOptions(String, String, String)

public CoreWebView2EnvironmentOptions (string additionalBrowserArguments = default, string language = default, string targetCompatibleBrowserVersion = default);
new Microsoft.Web.WebView2.Core.CoreWebView2EnvironmentOptions : string * string * string -> Microsoft.Web.WebView2.Core.CoreWebView2EnvironmentOptions
Public Sub New (Optional additionalBrowserArguments As String = Nothing, Optional language As String = Nothing, Optional targetCompatibleBrowserVersion As String = Nothing)

Parameters

additionalBrowserArguments
String
language
String
targetCompatibleBrowserVersion
String

Applies to

CoreWebView2EnvironmentOptions(String, String, String, Boolean)

Initializes a new instance of the CoreWebView2EnvironmentOptions class.

public CoreWebView2EnvironmentOptions (string additionalBrowserArguments = default, string language = default, string targetCompatibleBrowserVersion = default, bool allowSingleSignOnUsingOSPrimaryAccount = false);
new Microsoft.Web.WebView2.Core.CoreWebView2EnvironmentOptions : string * string * string * bool -> Microsoft.Web.WebView2.Core.CoreWebView2EnvironmentOptions
Public Sub New (Optional additionalBrowserArguments As String = Nothing, Optional language As String = Nothing, Optional targetCompatibleBrowserVersion As String = Nothing, Optional allowSingleSignOnUsingOSPrimaryAccount As Boolean = false)

Parameters

additionalBrowserArguments
String

AdditionalBrowserArguments can be specified to change the behavior of the WebView.

language
String

The default language that WebView will run with.

targetCompatibleBrowserVersion
String

The version of the Edge WebView2 Runtime binaries required to be compatible with the calling application.

allowSingleSignOnUsingOSPrimaryAccount
Boolean

Set to true if single sign on be enabled using the end user's OS primary account. Defaults to false.

Applies to

CoreWebView2EnvironmentOptions(String, String, String, Boolean, List<CoreWebView2CustomSchemeRegistration>)

Initializes a new instance of the CoreWebView2EnvironmentOptions class.

public CoreWebView2EnvironmentOptions (string additionalBrowserArguments = default, string language = default, string targetCompatibleBrowserVersion = default, bool allowSingleSignOnUsingOSPrimaryAccount = false, System.Collections.Generic.List<Microsoft.Web.WebView2.Core.CoreWebView2CustomSchemeRegistration> customSchemeRegistrations = default);
public CoreWebView2EnvironmentOptions (string additionalBrowserArguments, string language, string targetCompatibleBrowserVersion, bool allowSingleSignOnUsingOSPrimaryAccount, System.Collections.Generic.List<Microsoft.Web.WebView2.Core.CoreWebView2CustomSchemeRegistration> customSchemeRegistrations);
new Microsoft.Web.WebView2.Core.CoreWebView2EnvironmentOptions : string * string * string * bool * System.Collections.Generic.List<Microsoft.Web.WebView2.Core.CoreWebView2CustomSchemeRegistration> -> Microsoft.Web.WebView2.Core.CoreWebView2EnvironmentOptions
Public Sub New (Optional additionalBrowserArguments As String = Nothing, Optional language As String = Nothing, Optional targetCompatibleBrowserVersion As String = Nothing, Optional allowSingleSignOnUsingOSPrimaryAccount As Boolean = false, Optional customSchemeRegistrations As List(Of CoreWebView2CustomSchemeRegistration) = Nothing)
Public Sub New (additionalBrowserArguments As String, language As String, targetCompatibleBrowserVersion As String, allowSingleSignOnUsingOSPrimaryAccount As Boolean, customSchemeRegistrations As List(Of CoreWebView2CustomSchemeRegistration))

Parameters

additionalBrowserArguments
String

AdditionalBrowserArguments can be specified to change the behavior of the WebView.

language
String

The default language that WebView will run with.

targetCompatibleBrowserVersion
String

The version of the Edge WebView2 Runtime binaries required to be compatible with the calling application.

allowSingleSignOnUsingOSPrimaryAccount
Boolean

Set to true if single sign on be enabled using the end user's OS primary account. Defaults to false.

customSchemeRegistrations
List<CoreWebView2CustomSchemeRegistration>

List of custom scheme registrations to be applied to the CoreWebView2Environment.

Applies to

CoreWebView2EnvironmentOptions(String, String, String, Boolean, List<CoreWebView2CustomSchemeRegistration>, CoreWebView2ReleaseChannels, CoreWebView2ChannelSearchKind)

Initializes a new instance of the CoreWebView2EnvironmentOptions class.

public CoreWebView2EnvironmentOptions (string additionalBrowserArguments, string language, string targetCompatibleBrowserVersion, bool allowSingleSignOnUsingOSPrimaryAccount, System.Collections.Generic.List<Microsoft.Web.WebView2.Core.CoreWebView2CustomSchemeRegistration> customSchemeRegistrations, Microsoft.Web.WebView2.Core.CoreWebView2ReleaseChannels releaseChannels = Microsoft.Web.WebView2.Core.CoreWebView2ReleaseChannels.Beta | Microsoft.Web.WebView2.Core.CoreWebView2ReleaseChannels.Canary | Microsoft.Web.WebView2.Core.CoreWebView2ReleaseChannels.Dev | Microsoft.Web.WebView2.Core.CoreWebView2ReleaseChannels.Stable, Microsoft.Web.WebView2.Core.CoreWebView2ChannelSearchKind channelSearchKind = Microsoft.Web.WebView2.Core.CoreWebView2ChannelSearchKind.MostStable);
new Microsoft.Web.WebView2.Core.CoreWebView2EnvironmentOptions : string * string * string * bool * System.Collections.Generic.List<Microsoft.Web.WebView2.Core.CoreWebView2CustomSchemeRegistration> * Microsoft.Web.WebView2.Core.CoreWebView2ReleaseChannels * Microsoft.Web.WebView2.Core.CoreWebView2ChannelSearchKind -> Microsoft.Web.WebView2.Core.CoreWebView2EnvironmentOptions
Public Sub New (additionalBrowserArguments As String, language As String, targetCompatibleBrowserVersion As String, allowSingleSignOnUsingOSPrimaryAccount As Boolean, customSchemeRegistrations As List(Of CoreWebView2CustomSchemeRegistration), Optional releaseChannels As CoreWebView2ReleaseChannels = Microsoft.Web.WebView2.Core.CoreWebView2ReleaseChannels.Beta | Microsoft.Web.WebView2.Core.CoreWebView2ReleaseChannels.Canary | Microsoft.Web.WebView2.Core.CoreWebView2ReleaseChannels.Dev | Microsoft.Web.WebView2.Core.CoreWebView2ReleaseChannels.Stable, Optional channelSearchKind As CoreWebView2ChannelSearchKind = Microsoft.Web.WebView2.Core.CoreWebView2ChannelSearchKind.MostStable)

Parameters

additionalBrowserArguments
String

AdditionalBrowserArguments can be specified to change the behavior of the WebView.

language
String

The default language that WebView will run with.

targetCompatibleBrowserVersion
String

The version of the Edge WebView2 Runtime binaries required to be compatible with the calling application.

allowSingleSignOnUsingOSPrimaryAccount
Boolean

Set to true if single sign on be enabled using the end user's OS primary account. Defaults to false.

customSchemeRegistrations
List<CoreWebView2CustomSchemeRegistration>

List of custom scheme registrations to be applied to the CoreWebView2Environment.

releaseChannels
CoreWebView2ReleaseChannels

The release channels that are searched for during environment creation.

channelSearchKind
CoreWebView2ChannelSearchKind

Set to CoreWebView2ChannelSearchKind.LeastStable so that environment creation searches for binaries from least to most stable: Canary -> Dev -> Beta -> WebView2 Runtime. Defaults to CoreWebView2RuntimeChannel.MostStable.

Applies to