Condividi tramite


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)
Available in Sandboxed Solutions: No
Available in SharePoint Online

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.

See Also

Reference

SPContext Class

SPContext Members

Microsoft.SharePoint Namespace

ItemId

Item