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)

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