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

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