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)

Syntax

'Declaration
Public Function GetPublishingPages ( _
    rowLimit As UInteger _
) As PublishingPageCollection
'Usage
Dim instance As PublishingWeb
Dim rowLimit As UInteger
Dim returnValue As PublishingPageCollection

returnValue = instance.GetPublishingPages(rowLimit)
public PublishingPageCollection GetPublishingPages(
    uint rowLimit
)

Parameters

Return value

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

Exceptions

Exception Condition
[Microsoft.SharePoint.Publishing.InvalidPublishingWebException]

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

Remarks

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.

See also

Reference

PublishingWeb class

PublishingWeb members

GetPublishingPages overload

Microsoft.SharePoint.Publishing namespace

RowLimit

GetPublishingPages

GetPublishingPages

GetPublishingPages

GetPublishingPages