SPUserCustomAction.Delete method
Deletes the custom action.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Overridable Sub Delete
'Usage
Dim instance As SPUserCustomAction
instance.Delete()
public virtual void Delete()
Exceptions
Exception | Condition |
---|---|
UnauthorizedAccessException | The user does not have permissions to delete the custom action. |
SPException | The changes conflict with those made concurrently by another user. -or- The custom action could not be deleted. |