SPFileVersionCollection.DeleteByLabel method
Deletes the file version object with the specified version label.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub DeleteByLabel ( _
versionlabel As String _
)
'Usage
Dim instance As SPFileVersionCollection
Dim versionlabel As String
instance.DeleteByLabel(versionlabel)
public void DeleteByLabel(
string versionlabel
)
Parameters
versionlabel
Type: System.StringThe version in the format of the VersionLabel property.
Remarks
This method clears the file version information from the collection.