Share via


View.DeleteObject method

Deletes the list view.

Namespace:  Microsoft.SharePoint.Client
Assembly:  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
Public Sub DeleteObject
'Usage
Dim instance As View

instance.DeleteObject()
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.

See also

Reference

View class

View members

Microsoft.SharePoint.Client namespace