Export (0) Print
Expand All

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)

public SPListItemVersion ListItemVersion { get; }

Property value

Type: Microsoft.SharePoint.SPListItemVersion
A UInt32 that specifies the version.

The GetVersionFromID(Int32) method of the SPListItemVersionCollection returns the file version object with the specified ID.

The version number must be greater than zero.

Show:
© 2014 Microsoft