Export (0) Print
Expand All

SPListItem.ID Property

Windows SharePoint Services 3

Gets the integer that identifies the item.

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

public override int ID { get; }

Property Value

Type: System.Int32
An integer that identifies the list item.

The ID property is invalid for an item that is created through the Add method of the SPListItemCollection class and that has not yet been updated through the Update method.

The value of this property does not equal the index of the item in the collection of items for the list.

Community Additions

© 2014 Microsoft