PublishingWeb.GetPagesListName method

The URL name of the pages list in which PublishingPage objects are stored for this PublishingWeb.

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

public static string GetPagesListName(
	SPWeb web


Type: Microsoft.SharePoint.SPWeb

The Web for which to get the name.

Return value

Type: System.String
The URL Name of the pages list.

If the Web is not a PublishingWeb object, SharePoint Foundation 2010 throws an exception.