Export (0) Print
Expand All

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)

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.

When this property is set, the ItemId property is set to InvalidItemId.

Show:
© 2014 Microsoft