Page Collection Class
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a collection of PublishingPage objects.
public ref class PublishingPageCollection sealed : Microsoft::SharePoint::Publishing::QueryBasedCollection<Microsoft::SharePoint::Publishing::PublishingPage ^>
public sealed class PublishingPageCollection : Microsoft.SharePoint.Publishing.QueryBasedCollection<Microsoft.SharePoint.Publishing.PublishingPage>
type PublishingPageCollection = class inherit QueryBasedCollection<PublishingPage>
Public NotInheritable Class PublishingPageCollection Inherits QueryBasedCollection(Of PublishingPage)
The collection provides an integer indexer method, foreach enumeration support (For Each in Microsoft Visual Basic), and a Count property. These can all be used to explicitly iterate over the collection.
Additionally, this collection uses Collaborative Application Markup Language (CAML) to apply sorting and filtering, and it provides base class support through the QueryBasedCollection base class.
CAML defines a query to be used in a Microsoft SharePoint FoundationSPQuery object, which the QueryBasedCollection base class provides. The CAML query must be applied when the collection is initially created and retrieved. For example, the GetPublishingPages() method includes overloads that take a CAML string directly, as well as overloads that take an SPQuery instance which has an Query property.
PublishingPageCollection also supports data paging, which makes it possible to retrieve subsets of the collection. The QueryBasedCollection base class provides this support. You must specify the maximum number of PublishingPage objects that can be retrieved in each subset when you initially create or retrieve the collection. For example, the PublishingWeb.GetPublishingPages method has overloads which take a row limit, as well as overloads that take an SPQuery instance that has an RowLimit property.
Gets the number of items in the collection.(Inherited from CollectionBase<T>)
Gets whether the collection is synchronized.(Inherited from CollectionBase<T>)
Gets an item by its unique identifier (ID).(Inherited from QueryBasedCollection<T>)
Gets the item at the specified
Gets an item by its Web-relative URL.(Inherited from QueryBasedCollection<T>)
Gets the PublishingWeb object that contains this PublishingWeb object.
Gets the maximum number of items that can be contained in a collection that is using data paging.(Inherited from QueryBasedCollection<T>)
Gets the object that can be used to synchronize access to this collection.(Inherited from CollectionBase<T>)
|Add(String, SPFile, Guid, PageConversionPriority)||
|Add(String, SPFile, Guid, String, PageConversionPriority)||
Copies the internal collection to the specified array, starting at the specified index.(Inherited from CollectionBase<T>)
Verifies whether the current item has already been retrieved.(Inherited from QueryBasedCollection<T>)
Returns a generic enumerator that can iterate through this generic CollectionBase instance.(Inherited from CollectionBase<T>)
Advances the collection to the next subset of paged data.(Inherited from QueryBasedCollection<T>)
Explicit Interface Implementations
Gets an enumerator that can iterate through the CollectionBase.(Inherited from CollectionBase<T>)