Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
SDK Documentation
SPListItem Class
 ID Property
Community Content
In this section
Statistics Annotations (0)
Collapse All/Expand All Collapse All
This page is specific to
The 2007 product release

Other versions are also available for the following:
SPListItem.ID Property (Microsoft.SharePoint)
Gets the integer that identifies the item.

Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Visual Basic (Declaration)
Public Overrides ReadOnly Property ID As Integer
Visual Basic (Usage)
Dim instance As SPListItem
Dim value As Integer

value = instance.ID
C#
public override int ID { get; }

Property Value

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.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker