SPListCollection.Item Property (Int32)
Gets the list object at the specified index in the collection.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public ReadOnly Property Item ( _
index As Integer _
) As SPList
Get
'Usage
Dim instance As SPListCollection
Dim index As Integer
Dim value As SPList
value = instance.Item(index)
public SPList this[
int index
] { get; }
Parameters
index
Type: System.Int32The index of the list to get.
Property Value
Type: Microsoft.SharePoint.SPList
An SPList object that represents the list.
Remarks
The Item property throws an ArgumentOutOfRangeException exception if the specified index is outside the valid range of indexes for the collection.