Previous topicNext topic
Help > Methods >
InitEx

InitEx Method

Extended version of the Init method

Initializes the control, loads and displays the Webview2, and displays the page defined by the HomeURL property, if it is specified.
Once the initialization is complete, the InitComplete event is launched, and the IsWebViewInit property is set to True.
This function (or Init method) MUST be called before any Internet browsing.

Syntax

object. InitEx[Lang As String = ""], [IsPrivateNavigation As Boolean = False], [browserInstallPath As String = ""], [userDataFolder As String = ""], [additionalBrowserArguments As String = ""], [AllowSingleSignOnUsingOSPrimaryAccount As Long = 0])

The InitEx method syntax has these parts:

Element Description
Object The object placeholder represents an OrdoWebView2 control
Lang String, optional, Language defined by the 2-letter code from ISO 639. If omitted, the chosen language will be that of the user's system.

IsPrivateNavigation Boolean, optional, if TRUE the browser goes into private browsing mode. Default value is False
browserInstallPath String, optional, sets the installation directory of the WebView2 fixed version. Only considered if UseEdgeFixedVersion is TRUE. If the string is empty an UseEdgeFixedVersion is true, the Fixed version provided with the component is loaded
userDataFolder String, optional, defines the user's browsing data directory. If empty, use default user assignment directory. Ignored if IsPrivateNavigation is true
additionalBrowserArguments String, optional, Allows passing parameters to the Chromium WebView2 browser through command line switches. You can find a list of Chromium Command Line Switches here

AllowSingleSignOnUsingOSPrimaryAccount Long, optional, Determines whether to enable single sign on with Azure Active Directory (AAD) resources inside WebView2 using the logged in Windows account and single sign on (SSO) with web sites using Microsoft account associated with the login in Windows account. Default value is 0 (False)

Remarks