ICoreWebView2ControllerOptions2

Undocumented in source.
version(Windows && inline_webview2_bindings && all)
interface ICoreWebView2ControllerOptions2 : ICoreWebView2ControllerOptions {
static const
GUID iid;
}

Members

Functions

get_ScriptLocale
HRESULT get_ScriptLocale(LPWSTR* locale)

The default locale for the WebView2. It sets the default locale for all Intl JavaScript APIs and other JavaScript APIs that depend on it, namely Intl.DateTimeFormat() which affects string formatting like in the time/date formats. Example: Intl.DateTimeFormat().format(new Date()) The intended locale value is in the format of BCP 47 Language Tags. More information can be found from IETF BCP47.

put_ScriptLocale
HRESULT put_ScriptLocale(LPCWSTR locale)

Sets the ScriptLocale property.

Inherited Members

From ICoreWebView2ControllerOptions

get_ProfileName
HRESULT get_ProfileName(LPWSTR* value)

ProfileName property is to specify a profile name, which is only allowed to contain the following ASCII characters. It has a maximum length of 64 characters excluding the null-terminator. It is ASCII case insensitive.

put_ProfileName
HRESULT put_ProfileName(LPCWSTR value)

Sets the ProfileName property.

get_IsInPrivateModeEnabled
HRESULT get_IsInPrivateModeEnabled(BOOL* value)

IsInPrivateModeEnabled property is to enable/disable InPrivate mode.

put_IsInPrivateModeEnabled
HRESULT put_IsInPrivateModeEnabled(BOOL value)

Sets the IsInPrivateModeEnabled property.

Meta