0 out of 3 rated this helpful - Rate this topic

SPListCollection.TryGetList method

Returns the list with the specified title from the collection, but returns null instead of an exception if the list does not exist.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
public SPList TryGetList(
	string listTitle
)

Parameters

listTitle
Type: System.String
A string that contains the title of the list.

Return value

Type: Microsoft.SharePoint.SPList
An SPList object that represents the list.
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.