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)
Syntax
'Declaration
Public ReadOnly Default Property Item ( _
strListName As String _
) As SPList
Get
'Usage
Dim instance As SPListCollection
Dim strListName As String
Dim value As SPList
value = instance(strListName)
public SPList this[
string strListName
] { get; }
Parameters
strListName
Type: System.StringA string that contains the name of a list to get.
Property value
Type: Microsoft.SharePoint.SPList
An SPList object that represents the list.