Export (0) Print
Expand All

SPList.GetItemByUniqueId method

Gets the list item by GUID.

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

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.

ExceptionCondition
ArgumentException

The list item does not exist.

-or-

The list is not a user information list.

Show:
© 2014 Microsoft