SPItem.ID Property

Gets or sets the ID of the item.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

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