This documentation is archived and is not being maintained.

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


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.