Click to Rate and Give Feedback
Community Content
In this section
Statistics Annotations (0)
Collapse All/Expand All Collapse All
This page is specific to
The 2010 product release

Other versions are also available for the following:
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)
Visual Basic (Declaration)
Public Shared Function GetPagesListId ( _
    web As SPWeb _
) As Guid
Visual Basic (Usage)
Dim web As SPWeb
Dim returnValue As Guid

returnValue = PublishingWeb.GetPagesListId(web)
C#
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.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker