Compartilhar via


SPUtility.GetListGuid Method

NOTE: This API is now obsolete.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Available in SharePoint Online

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