共用方式為


SPWeb.Lists property

取得包含在網站中的所有清單集合。

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

Syntax

'宣告
Public ReadOnly Property Lists As SPListCollection
    Get
'用途
Dim instance As SPWeb
Dim value As SPListCollection

value = instance.Lists
public SPListCollection Lists { get; }

Property value

Type: Microsoft.SharePoint.SPListCollection
SPList 物件的集合。

備註

如果您想要只在特定類型的清單中,請改為呼叫GetListsOfType(SPBaseType)方法。

請參閱

參照

SPWeb class

SPWeb members

Microsoft.SharePoint namespace

GetListsOfType(SPBaseType)