SPFileVersionCollection.Delete method

Deletes the file version object at the specified index in the collection.

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

Syntax

'Declaration
Public Sub Delete ( _
    iIndex As Integer _
)
'Usage
Dim instance As SPFileVersionCollection
Dim iIndex As Integer

instance.Delete(iIndex)
public void Delete(
    int iIndex
)

Parameters

  • iIndex
    Type: System.Int32

    A 32-bit integer that specifies the file version object to delete.

Remarks

This method calls DeleteByID(Int32) method with this[iIndex].ID.

This method clears the file version information from the collection.

See also

Reference

SPFileVersionCollection class

SPFileVersionCollection members

Microsoft.SharePoint namespace