Поделиться через


GetList Method

The GetList method of the SPListCollection class returns the list with the specified GUID from the collection.

Parameters

uniqueId   The GUID for the list to return.

bPrefetchMetadata  true to retrieve metadata for the views and forms of the list; otherwise, false.

Return Value

A Microsoft.SharePoint.SPList object that represents the list.

Remarks

The GetList method throws a Microsoft.SharePoint.SPException exception if the GUID specified for the uniqueId parameter is invalid.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security