Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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)

public static Guid GetPagesListId(
	SPWeb web
)

Parameters

web
Type: Microsoft.SharePoint.SPWeb

The Web for which to get the pages list.

Return value

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

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

Show:
© 2015 Microsoft