Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Updates the database with changes that have been made to the properties of the group.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
<ClientCallableExceptionConstraintAttribute(FixedId := "DistributionException", ErrorType := GetType(SPDistributionGroupException), _
Condition := "Distribution group member resync or properties update fails.")> _
<ClientCallableAttribute> _
<ClientCallableExceptionConstraintAttribute(FixedId := "E_InvalidArg", ErrorCode := , Condition := "Invalid argument.")> _
<ClientCallableExceptionConstraintAttribute(FixedId := "BADGROUPNAME", ErrorCode := , Condition := "Invalid group name.")> _
<ClientCallableExceptionConstraintAttribute(FixedId := "GroupExist", ErrorCode := , Condition := "Group already exists.")> _
<ClientCallableExceptionConstraintAttribute(FixedId := "DuplicateValue", ErrorCode := , Condition := "Duplicate tags are found.")> _
<ClientCallableExceptionConstraintAttribute(FixedId := "Error_Dev_Not_Exist", ErrorCode := , _
Condition := "User information list for the site collection is not found or is not valid.")> _
<ClientCallableExceptionConstraintAttribute(FixedId := "E_AccessDenied", ErrorCode := , Condition := "The current user does not have permission.")> _
<ClientCallableExceptionConstraintAttribute(FixedId := "E_Unexpected", ErrorCode := , Condition := "Validation is not enabled when adding a validation formula to the calculation row")> _
Public Sub Update
'Usage
Dim instance As SPGroup
instance.Update()
[ClientCallableExceptionConstraintAttribute(FixedId = "DistributionException", ErrorType = typeof(SPDistributionGroupException),
Condition = "Distribution group member resync or properties update fails.")]
[ClientCallableAttribute]
[ClientCallableExceptionConstraintAttribute(FixedId = "E_InvalidArg", ErrorCode = , Condition = "Invalid argument.")]
[ClientCallableExceptionConstraintAttribute(FixedId = "BADGROUPNAME", ErrorCode = , Condition = "Invalid group name.")]
[ClientCallableExceptionConstraintAttribute(FixedId = "GroupExist", ErrorCode = , Condition = "Group already exists.")]
[ClientCallableExceptionConstraintAttribute(FixedId = "DuplicateValue", ErrorCode = , Condition = "Duplicate tags are found.")]
[ClientCallableExceptionConstraintAttribute(FixedId = "Error_Dev_Not_Exist", ErrorCode = , Condition = "User information list for the site collection is not found or is not valid.")]
[ClientCallableExceptionConstraintAttribute(FixedId = "E_AccessDenied", ErrorCode = , Condition = "The current user does not have permission.")]
[ClientCallableExceptionConstraintAttribute(FixedId = "E_Unexpected", ErrorCode = , Condition = "Validation is not enabled when adding a validation formula to the calculation row")]
public void Update()
Exceptions
Exception | Condition |
---|---|
Exception | Occurs while performing an operation on the group. |
SPDistributionGroupException | Occurs while performing an operation on the distribution list. |
Remarks
Call this method to commit the changes that are made to the group to the database, otherwise, the changes will not be persisted.