共用方式為


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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public ReadOnly Property Item ( _
    strListName As String _
) As SPList
    Get
'Usage
Dim instance As SPListCollection
Dim strListName As String
Dim value As SPList

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

Parameters

  • 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

Reference

SPListCollection Class

SPListCollection Members

Item Overload

Microsoft.SharePoint Namespace