UserCustomAction.DeleteObject-Methode
Deletes the custom action.
Namespace: Microsoft.SharePoint.Client
Assemblys: Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll); Microsoft.SharePoint.Client.Phone (in Microsoft.SharePoint.Client.Phone.dll) Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
Syntax
'Declaration
Public Overridable Sub DeleteObject
'Usage
Dim instance As UserCustomAction
instance.DeleteObject()
public virtual void DeleteObject()
Ausnahmen
Ausnahme | Bedingung |
---|---|
[Microsoft.SharePoint.SPException] | Custom action does not exist. Error code: -2146232832. 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 |