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)

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    index As Integer _
) As SPList
    Get
'Usage
Dim instance As SPListCollection
Dim index As Integer
Dim value As SPList

value = instance(index)
public SPList this[
    int index
] { get; }

Parameters

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.

See also

Reference

SPListCollection class

SPListCollection members

Item overload

Microsoft.SharePoint namespace