SPViewCollection.Delete method

Deletes the view with the specified GUID from the collection.

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

Syntax

'Declaration
Public Sub Delete ( _
    id As Guid _
)
'Usage
Dim instance As SPViewCollection
Dim id As Guid

instance.Delete(id)
public void Delete(
    Guid id
)

Parameters

  • id
    Type: System.Guid

    A GUID that specifies the view to delete.

Remarks

This method deletes the view with the specified ID from the view collection of the list represented by the List property.

See also

Reference

SPViewCollection class

SPViewCollection members

Microsoft.SharePoint namespace