User.Update method
Updates the user with changes that have been made to the user properties.
Namespace: Microsoft.SharePoint.Client
Assembly: Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
Syntax
'Declaration
Public Sub Update
'Usage
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. |
Remarks
Call this method after setting the values for the properties of the user object to save the changes in the database.