Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

SPUtility.GetListGuid method

NOTE: This API is now obsolete.

Given a string with the list's ID or it's display name, will return the corresponding ID as a GUID for the list in the specified web.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
[ObsoleteAttribute("Please use GetSPListFromName instead", false)]
public static Guid GetListGuid(
	SPWeb web,
	string listNameOrId


Type: Microsoft.SharePoint.SPWeb
Type: System.String

Return value

Type: System.Guid
The list ID.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.