Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Restores the specified version as the current item version based on the specified index in the collection.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Sub Restore ( _
iIndex As Integer _
)
'Usage
Dim instance As SPListItemVersionCollection
Dim iIndex As Integer
instance.Restore(iIndex)
public void Restore(
int iIndex
)
Parameters
iIndex
Type: System.Int32A 32-bit integer that specifies the index in the collection of the version to restore.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | The iIndex is outside the range of the list item version collection. |
Remarks
This method replaces the current list item version with the version in the collection specified by the iIndex parameter.
See Also
Reference
SPListItemVersionCollection Class