Click or drag to resize
CultureHelperSetPreferredCulture Method (String, Boolean, Boolean)
Sets the user preferred culture.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.2.23
Syntax
C#
public static void SetPreferredCulture(
	string cultureCode,
	bool setCookie,
	bool handleLifeTime
)

Parameters

cultureCode
Type: SystemString
Culture code to set
setCookie
Type: SystemBoolean
Set the culture to a cookie as well
handleLifeTime
Type: SystemBoolean
If true, the life time support of the culture is allowed
See Also