SPListItemCollection.Item property (Guid)

Gets the item object with the specified GUID from the collection.

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

public SPListItem this[
	Guid uniqueId
] { get; }

Parameters

uniqueId
Type: System.Guid

The value of the item’s UniqueId property.

Property value

Type: Microsoft.SharePoint.SPListItem
The item.

ExceptionCondition
NotSupportedException

The list has an external data source.

ArgumentException

The collection does not contain an item with that GUID.

This indexer is not supported for lists that have an external data source. Use the Item[Int32] indexer instead.

Show: