SPUserSettingsProvider.UpdateUserLanguageSettings method
Updates user's Language Settings. This is for updating BOTH display and content languages.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub UpdateUserLanguageSettings ( _
providerContext As Object, _
user As SPUser, _
muiLanguages As String, _
contentLanguages As String _
)
'Usage
Dim instance As SPUserSettingsProvider
Dim providerContext As Object
Dim user As SPUser
Dim muiLanguages As String
Dim contentLanguages As String
instance.UpdateUserLanguageSettings(providerContext, _
user, muiLanguages, contentLanguages)
public void UpdateUserLanguageSettings(
Object providerContext,
SPUser user,
string muiLanguages,
string contentLanguages
)
Parameters
providerContext
Type: System.ObjectThe cached provider context.
user
Type: Microsoft.SharePoint.SPUserThe user to update languages for.
muiLanguages
Type: System.StringDisplay languages to update with.
contentLanguages
Type: System.StringContent languages to update with.