共用方式為


SPUserCustomAction.Update Method

Updates the custom action by writing changes to the database.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<ClientCallableExceptionConstraintAttribute(Condition := "Save Conflict. Your changes conflict with those made concurrently by another user. If you want your changes to be applied, click Back in your Web browser, refresh the page, and resubmit your changes.",  _
    ErrorType := GetType(SPException), FixedId := "saveconflict",  _
    ErrorCode := )> _
<ClientCallableExceptionConstraintAttribute(Condition := "The UserCustomAction cannot be saved because its site collection is write locked.",  _
    ErrorType := GetType(SPException), FixedId := "a", ErrorCode := )> _
<ClientCallableExceptionConstraintAttribute(Condition := "The UserCustomAction cannot be saved because its site collection quota has been reached.",  _
    ErrorType := GetType(SPException), FixedId := "b", ErrorCode := )> _
<ClientCallableExceptionConstraintAttribute(Condition := "There is an error when saving the UserCustomAction.",  _
    ErrorType := GetType(SPException), FixedId := "c", ErrorCode := )> _
<ClientCallableExceptionConstraintAttribute(Condition := "User does not have permissions to update the UserCustomAction.",  _
    ErrorType := GetType(UnauthorizedAccessException), FixedId := "accessdenied")> _
<ClientCallableMethodAttribute(ReturnThisObjectState := True)> _
Public Overridable Sub Update
'Usage
Dim instance As SPUserCustomAction

instance.Update()
[ClientCallableExceptionConstraintAttribute(Condition = "Save Conflict. Your changes conflict with those made concurrently by another user. If you want your changes to be applied, click Back in your Web browser, refresh the page, and resubmit your changes.", 
    ErrorType = typeof(SPException), FixedId = "saveconflict", 
    ErrorCode = )]
[ClientCallableExceptionConstraintAttribute(Condition = "The UserCustomAction cannot be saved because its site collection is write locked.", 
    ErrorType = typeof(SPException), FixedId = "a", ErrorCode = )]
[ClientCallableExceptionConstraintAttribute(Condition = "The UserCustomAction cannot be saved because its site collection quota has been reached.", 
    ErrorType = typeof(SPException), FixedId = "b", ErrorCode = )]
[ClientCallableExceptionConstraintAttribute(Condition = "There is an error when saving the UserCustomAction.", 
    ErrorType = typeof(SPException), FixedId = "c", ErrorCode = )]
[ClientCallableExceptionConstraintAttribute(Condition = "User does not have permissions to update the UserCustomAction.", 
    ErrorType = typeof(UnauthorizedAccessException), FixedId = "accessdenied")]
[ClientCallableMethodAttribute(ReturnThisObjectState = true)]
public virtual void Update()

See Also

Reference

SPUserCustomAction Class

SPUserCustomAction Members

Microsoft.SharePoint Namespace