SPContext.ItemId Property

Gets the ID of the item that is associated with the Microsoft SharePoint Foundation context.

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

Syntax

'Declaration
Public Property ItemId As Integer
    Get
    Set
'Usage
Dim instance As SPContext
Dim value As Integer

value = instance.ItemId

instance.ItemId = value
public int ItemId { get; set; }

Property Value

Type: System.Int32
A 32-bit integer that represents the ID of the item.

See Also

Reference

SPContext Class

SPContext Members

Microsoft.SharePoint Namespace

ItemIdAsString

Item