This topic has not yet been rated - Rate this topic

SPList.GetItemByUniqueId Method

Gets the list item by GUID.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
public SPListItem GetItemByUniqueId(
	Guid uniqueId
)

Parameters

uniqueId
Type: System.Guid
The GUID of the list item.

Return Value

Type: Microsoft.SharePoint.SPListItem
The list item.
Exception Condition
ArgumentException

The list item does not exist.

-or-

The list is not a user information list.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ