Share via

SPListCollection.Item property (String)

Gets the list object that has the specified name from the collection.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)


Public ReadOnly Default Property Item ( _
    strListName As String _
) As SPList
Dim instance As SPListCollection
Dim strListName As String
Dim value As SPList

value = instance(strListName)
public SPList this[
    string strListName
] { get; }


  • strListName
    Type: System.String

    A string that contains the name of a list to get.

Property value

Type: Microsoft.SharePoint.SPList
An SPList object that represents the list.

See also


SPListCollection class

SPListCollection members

Item overload

Microsoft.SharePoint namespace