Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the list item by GUID.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
'Declaration
Public Function GetItemByUniqueId ( _
uniqueId As Guid _
) As SPListItem
'Usage
Dim instance As SPList
Dim uniqueId As Guid
Dim returnValue As SPListItem
returnValue = instance.GetItemByUniqueId(uniqueId)
public SPListItem GetItemByUniqueId(
Guid uniqueId
)
uniqueId
Type: System.Guid
The GUID of the list item.
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. |
Please sign in to use this experience.
Sign in