Share via


PublishingWeb.GetPagesListId Method

Returns ID of the pages list in which PublishingPage objects are stored for this PublishingWeb object.

Namespace:  Microsoft.SharePoint.Publishing
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

Syntax

'Declaration
Public Shared Function GetPagesListId ( _
    web As SPWeb _
) As Guid
'Usage
Dim web As SPWeb
Dim returnValue As Guid

returnValue = PublishingWeb.GetPagesListId(web)
public static Guid GetPagesListId(
    SPWeb web
)

Parameters

Return Value

Type: System.Guid
The ID of the pages list.

Remarks

If the Web is not a PublishingWeb, the application throws an exception.

Examples

GetPagesListId

GetPagesListName

PagesList

PagesListId

PagesListName

See Also

Reference

PublishingWeb Class

PublishingWeb Members

Microsoft.SharePoint.Publishing Namespace