UserCustomActionCollection.Clear method
Deletes all custom actions in the collection.
Namespace: Microsoft.SharePoint.Client
Assembly: Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
Syntax
'Declaration
Public Sub Clear
'Usage
Dim instance As UserCustomActionCollection
instance.Clear()
public void Clear()
Exceptions
Exception | Condition |
---|---|
[Microsoft.SharePoint.SPException] | Custom action does not exist. Error code: -2146232832. |
[Microsoft.SharePoint.SPException] | Custom action was modified on the server so changes cannot be committed. Error code: -2130575305. |
[System.UnauthorizedAccessException] | The current user has insufficient permissions. Error code: -2147024891. |
See also
Reference
UserCustomActionCollection class