SPContext.ListItemVersion Property
Gets a UInt32 object that represents version number specified by the context.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public ReadOnly Property ListItemVersion As SPListItemVersion
Get
'Usage
Dim instance As SPContext
Dim value As SPListItemVersion
value = instance.ListItemVersion
public SPListItemVersion ListItemVersion { get; }
Property Value
Type: Microsoft.SharePoint.SPListItemVersion
A UInt32 that specifies the version.
Remarks
The GetVersionFromID(Int32) method of the SPListItemVersionCollection returns the file version object with the specified ID.
The version number must be greater than zero.