Gets the item object with the specified GUID from the collection.
命名空间: Microsoft.SharePoint
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public ReadOnly Default Property Item ( _
uniqueId As Guid _
) As SPListItem
Get
用法
Dim instance As SPListItemCollection
Dim uniqueId As Guid
Dim value As SPListItem
value = instance(uniqueId)
public SPListItem this[
Guid uniqueId
] { get; }
参数
uniqueId
类型:System.GuidThe value of the item’s UniqueId property.
属性值
类型:Microsoft.SharePoint.SPListItem
The item.
异常
| 异常 | 条件 |
|---|---|
| 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.