Export (0) Print
Expand All
Expand Minimize

SPWeb.GetListItem Method

Windows SharePoint Services 3

Returns the list item that is associated with the specified server-relative URL.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public SPListItem GetListItem(
	string strUrl
)

Parameters

strUrl
Type: System.String
A string that contains the server-relative URL, for example,"/sites/MySite/Shared Documents/MyDocument.docx".

Return Value

Type: Microsoft.SharePoint.SPListItem
An SPListItem object that represents the list item.

Community Additions

ADD
Show:
© 2014 Microsoft