SPListItemCollection.Item 属性 (Int32)

Gets the list item at the specified index in the collection.

命名空间:  Microsoft.SharePoint
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public ReadOnly Default Property Item ( _
    iIndex As Integer _
) As SPListItem
    Get
用法
Dim instance As SPListItemCollection
Dim iIndex As Integer
Dim value As SPListItem

value = instance(iIndex)
public SPListItem this[
    int iIndex
] { get; }

参数

  • iIndex
    类型:System.Int32

    A 32-bit integer that specifies the item’s index in the collection.

属性值

类型:Microsoft.SharePoint.SPListItem
The item.

异常

异常 条件
ArgumentOutOfRangeException

The specified index is outside the valid range of indices for the collection.

备注

An item’s index in the collection cannot be obtained by accessing the item’s ID property.

另请参阅

引用

SPListItemCollection 类

SPListItemCollection 成员

Item 重载

Microsoft.SharePoint 命名空间