Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ListItemVersion property

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:
© 2015 Microsoft