SPUtility.SetThreadCulture method

Sets the thread and user interface (UI) culture.

Overload list

  Name Description
Public methodStatic member SetThreadCulture(SPWeb) Sets the thread and user interface (UI) culture based on the values of the LocaleId property and the PreferredDisplayLanguages property, respectively, for the current user. If the current user cannot be determined, the culture is set based on the value of the Locale property and language on the value of the Language property.
Public methodStatic member SetThreadCulture(CultureInfo, CultureInfo) Sets the thread and user interface (UI) culture, based upon the current culture of the thread and the current culture of the UI.

Top

See also

Reference

SPUtility class

SPUtility members

Microsoft.SharePoint.Utilities namespace