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: 13.0.131
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
Remarks
The method has no effect on live site.
See Also