This documentation is archived and is not being maintained.

SPListCollection.GetList Method (Guid, Boolean)

Windows SharePoint Services 3

Returns the list with the specified GUID from the collection.

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

public SPList GetList(
	Guid uniqueId,
	bool bFetchMetadata


Type: System.Guid
The GUID for the list to return.
Type: System.Boolean
true to retrieve metadata for the views and forms of the list; otherwise, false.

Return Value

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

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