The OpenD Programming Language

ICoreWebView2EnvironmentOptions

Undocumented in source.

Members

Functions

get_AdditionalBrowserArguments
HRESULT get_AdditionalBrowserArguments(LPWSTR* value)

Changes the behavior of the WebView. The arguments are passed to the browser process as part of the command. For more information about using command-line switches with Chromium browser processes, navigate to Run Chromium with Flags. The value appended to a switch is appended to the browser process, for example, in --edge-webview-switches=xxx the value is xxx. If you specify a switch that is important to WebView functionality, it is ignored, for example, --user-data-dir. Specific features are disabled internally and blocked from being enabled. If a switch is specified multiple times, only the last instance is used.

get_AllowSingleSignOnUsingOSPrimaryAccount
HRESULT get_AllowSingleSignOnUsingOSPrimaryAccount(BOOL* allow)

The AllowSingleSignOnUsingOSPrimaryAccount property is used to enable single sign on with Azure Active Directory (AAD) and personal Microsoft Account (MSA) resources inside WebView. All AAD accounts, connected to Windows and shared for all apps, are supported. For MSA, SSO is only enabled for the account associated for Windows account login, if any. Default is disabled. Universal Windows Platform apps must also declare enterpriseCloudSSO Restricted capabilities

for the single sign on (SSO) to work.

get_Language
HRESULT get_Language(LPWSTR* value)

The default display language for WebView. It applies to browser UI such as context menu and dialogs. It also applies to the accept-languages HTTP header that WebView sends to websites. The intended locale value is in the format of BCP 47 Language Tags. More information can be found from IETF BCP47.

get_TargetCompatibleBrowserVersion
HRESULT get_TargetCompatibleBrowserVersion(LPWSTR* value)

Specifies the version of the WebView2 Runtime binaries required to be compatible with your app. This defaults to the WebView2 Runtime version that corresponds with the version of the SDK the app is using. The format of this value is the same as the format of the BrowserVersionString property and other BrowserVersion values. Only the version part of the BrowserVersion value is respected. The channel suffix, if it exists, is ignored. The version of the WebView2 Runtime binaries actually used may be different from the specified TargetCompatibleBrowserVersion. The binaries are only guaranteed to be compatible. Verify the actual version on the BrowserVersionString property on the ICoreWebView2Environment.

put_AdditionalBrowserArguments
HRESULT put_AdditionalBrowserArguments(LPCWSTR value)

Sets the AdditionalBrowserArguments property.

put_AllowSingleSignOnUsingOSPrimaryAccount
HRESULT put_AllowSingleSignOnUsingOSPrimaryAccount(BOOL allow)

Sets the AllowSingleSignOnUsingOSPrimaryAccount property.

put_Language
HRESULT put_Language(LPCWSTR value)

Sets the Language property.

put_TargetCompatibleBrowserVersion
HRESULT put_TargetCompatibleBrowserVersion(LPCWSTR value)

Sets the TargetCompatibleBrowserVersion property.

Meta