User.Update 方法
Updates the user with changes that have been made to the user properties.
命名空间: Microsoft.SharePoint.Client
程序集: Microsoft.SharePoint.Client.Silverlight(位于 Microsoft.SharePoint.Client.Silverlight.dll 中); Microsoft.SharePoint.Client.Phone(位于 Microsoft.SharePoint.Client.Phone.dll 中) Microsoft.SharePoint.Client(位于 Microsoft.SharePoint.Client.dll 中)
语法
声明
Public Sub Update
用法
Dim instance As User
instance.Update()
public void Update()
异常
异常 | 条件 |
---|---|
[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. |
备注
Call this method after setting the values for the properties of the user object to save the changes in the database.