Partager via


User.Update - Méthode

Updates the user with changes that have been made to the user properties.

Espace de noms :  Microsoft.SharePoint.Client
Assemblys :   Microsoft.SharePoint.Client.Silverlight (dans Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client.Phone (dans Microsoft.SharePoint.Client.Phone.dll)  Microsoft.SharePoint.Client (dans Microsoft.SharePoint.Client.dll)

Syntaxe

'Déclaration
Public Sub Update
'Utilisation
Dim instance As User

instance.Update()
public void Update()

Exceptions

Exception Condition
[Microsoft.SharePoint.SPDuplicateValuesFoundException]

Duplicate value was found for one or more user properties. Error code: -2130575169.

[Microsoft.SharePoint.SPException]

User does not exist. Error code = -2130575338.

[Microsoft.SharePoint.SPListDataValidationException]

Validation failed for a field in the corresponding user information list item. Error code = -2130575163. Validation failed for the corresponding user information list item. Error code = -2130575162. Validation failed for the corresponding user information list item or one of the user information list item fields. Error code = -2130575161.

[System.UnauthorizedAccessException]

The current user has insufficient permissions. Error code: -2147024891.

Remarques

Call this method after setting the values for the properties of the user object to save the changes in the database.

Voir aussi

Référence

User classe

User - Membres

Microsoft.SharePoint.Client - Espace de noms