Compartilhar via


SPUtility.SetThreadCulture Method (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.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)> _
Public Shared Sub SetThreadCulture ( _
    culture As CultureInfo, _
    uiCulture As CultureInfo _
)
'Usage
Dim culture As CultureInfo
Dim uiCulture As CultureInfoSPUtility.SetThreadCulture(culture, uiCulture)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)]
public static void SetThreadCulture(
    CultureInfo culture,
    CultureInfo uiCulture
)

Parameters

See Also

Reference

SPUtility Class

SPUtility Members

SetThreadCulture Overload

Microsoft.SharePoint.Utilities Namespace