SPContext.ItemIdAsString property
Gets or sets a string value for the ID of the list item that is associated with the request context.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Property ItemIdAsString As String
Get
Set
'Usage
Dim instance As SPContext
Dim value As String
value = instance.ItemIdAsString
instance.ItemIdAsString = value
public string ItemIdAsString { get; set; }
Property value
Type: System.String
A string value for the ID of the list item that is associated with the page. When the page is not associated with a list item, the value “0” is returned.
Remarks
When this property is set, the ItemId property is set to InvalidItemId.