SPItemEventProperties.ListItemVersion property

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

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

Syntax

'Declaration
Public ReadOnly Property ListItemVersion As Integer
    Get
'Usage
Dim instance As SPItemEventProperties
Dim value As Integer

value = instance.ListItemVersion
public int ListItemVersion { get; }

Property value

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

Remarks

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.

See also

Reference

SPItemEventProperties class

SPItemEventProperties members

Microsoft.SharePoint namespace