Export (0) Print
Expand All
Expand Minimize

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
)

Parameters

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

Return value

Type: System.Guid
The list ID.
Show:
© 2014 Microsoft