Public Overrides ReadOnly Property ID As Integer
Dim instance As SPListItem Dim value As Integer value = instance.ID
public override int ID { get; }
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.