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)

Syntax

'Declaration
<ObsoleteAttribute("Please use GetSPListFromName instead", False)> _
Public Shared Function GetListGuid ( _
    web As SPWeb, _
    listNameOrId As String _
) As Guid
'Usage
Dim web As SPWeb
Dim listNameOrId As String
Dim returnValue As Guid

returnValue = SPUtility.GetListGuid(web, _
    listNameOrId)
[ObsoleteAttribute("Please use GetSPListFromName instead", false)]
public static Guid GetListGuid(
    SPWeb web,
    string listNameOrId
)

Parameters

Return value

Type: System.Guid
The list ID.

See also

Reference

SPUtility class

SPUtility members

Microsoft.SharePoint.Utilities namespace