View.DeleteObject Method
Deletes the list view.
Namespace: Microsoft.SharePoint.Client
Assemblies: Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll); Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
Syntax
'Declaration
<RemoteAttribute> _
Public Sub DeleteObject
'Usage
Dim instance As View
instance.DeleteObject()
[RemoteAttribute]
public void DeleteObject()
Exceptions
Exception | Condition |
---|---|
[Microsoft.SharePoint.SPException] | List view does not exist. Error code: -2130575320. |
[System.UnauthorizedAccessException] | The current user has insufficient permissions. Error code: -2147024891. |