SPItemEventProperties.ListItemVersion property

SharePoint 2013

Gets the specific historical version of the list item for which the event applies.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public int ListItemVersion { get; }

Property value

Type: System.Int32
A 32-bit integer that represents the historical version of the list item.

The event is only applicable if ListItemVersion property is the same value as the SpecificVersion field. The ListItemVersion property throws an InvalidOperationException if the ListItemVersion property is not the same value as the SpecificVersion field.

This property is only used with ItemVersionDeleting and ItemVersionDeleted events.

Show: