Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetListGuid method
Collapse the table of content
Expand the table of content

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:
© 2015 Microsoft