SPListItemCollection.Item 属性 (Guid)

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; }

参数

属性值

类型: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.

另请参阅

引用

SPListItemCollection 类

SPListItemCollection 成员

Item 重载

Microsoft.SharePoint 命名空间