Share via


SPItem.ID property

Gets or sets the ID of the item.

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

Syntax

'Declaration
Public Overridable Property ID As Integer
    Get
    Set
'Usage
Dim instance As SPItem
Dim value As Integer

value = instance.ID

instance.ID = value
public virtual int ID { get; set; }

Property value

Type: System.Int32
A 32-bit integer that specifies the ID.

See also

Reference

SPItem class

SPItem members

Microsoft.SharePoint namespace