Share via


SPUserCustomActionCollection.Clear Method

Deletes all SPUserCustomAction objects in the collection.

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

Syntax

'Declaration
<ClientCallableExceptionConstraintAttribute(Condition := "The user custom action was deleted successfully, but a processing error occurred after the deletion or the user is unable to delete the custom action.",  _
    ErrorType := GetType(SPException), FixedId := "a", ErrorCode := )> _
<ClientCallableExceptionConstraintAttribute(Condition := "User does not have permissions to delete the UserCustomAction.",  _
    ErrorType := GetType(UnauthorizedAccessException), FixedId := "accessdenied")> _
<ClientCallableExceptionConstraintAttribute(Condition := "The changes conflict with those made concurrently by another user.",  _
    ErrorType := GetType(SPException), FixedId := "saveconflict",  _
    ErrorCode := )> _
<ClientCallableMethodAttribute> _
Public Sub Clear
'Usage
Dim instance As SPUserCustomActionCollection

instance.Clear()
[ClientCallableExceptionConstraintAttribute(Condition = "The user custom action was deleted successfully, but a processing error occurred after the deletion or the user is unable to delete the custom action.", 
    ErrorType = typeof(SPException), FixedId = "a", ErrorCode = )]
[ClientCallableExceptionConstraintAttribute(Condition = "User does not have permissions to delete the UserCustomAction.", 
    ErrorType = typeof(UnauthorizedAccessException), FixedId = "accessdenied")]
[ClientCallableExceptionConstraintAttribute(Condition = "The changes conflict with those made concurrently by another user.", 
    ErrorType = typeof(SPException), FixedId = "saveconflict", 
    ErrorCode = )]
[ClientCallableMethodAttribute]
public void Clear()

See Also

Reference

SPUserCustomActionCollection Class

SPUserCustomActionCollection Members

Microsoft.SharePoint Namespace