Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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:
© 2015 Microsoft