PublishingWeb.GetPublishingPages method (UInt32)

Gets a collection of PublishingPage objects contained in this PublishingWeb object.

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

public PublishingPageCollection GetPublishingPages(
	uint rowLimit


Type: System.UInt32

The maximum number of items (rows) to return each time the PublishingPageCollection collection is retrieved.

Return value

Type: Microsoft.SharePoint.Publishing.PublishingPageCollection
A PublishingPageCollection collection containing the first nPublishingPage objects in the PublishingWeb where n is the rowLimit value


The site is not valid. The Pages document library is missing.

The rowLimit argument passed in this method is equivalent to the RowLimit property.

You can use the QueryNext() method of the returned collection to retrieve the next n items in the collection where n is the rowLimit argument value. The RowLimit() property of the returned collection returns the rowLimit value set here.

If the rowLimit value is 0, then all the PublishingPage objects for the PublishingWeb class are retrieved when the PublishingPageCollection collection is created. The same is true if the rowLimit exceeds the maximum number of PublishingPage objects in the PublishingWeb class.

The PublishingPageCollection that is returned has no specific sorting or filtering applied.