Class PageDataEnumerableExtensions

Contains extension methods for System.Collections.Generic.IEnumerable<T>

Inheritance
System.Object
PageDataEnumerableExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
public static class PageDataEnumerableExtensions

Methods

Filter(IEnumerable<PageData>, IPageFilter)

Filters the specified pages using the given page filter.

Declaration
public static IEnumerable<PageData> Filter(this IEnumerable<PageData> pages, IPageFilter filter)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<PageData> pages

The collection of pages to filter.

IPageFilter filter

The filter to apply to the collection.

Returns
Type Description
System.Collections.Generic.IEnumerable<PageData>

A filtered collection of PageData objects.

ToRawPageArray(IEnumerable<PageData>)

Creates an array of RawPage objects from all the PageData objects in the enumerable.

Declaration
public static RawPage[] ToRawPageArray(this IEnumerable<PageData> pages)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<PageData> pages

The collection of pages to create the array of RawPage objects from.

Returns
Type Description
RawPage[]

An array of RawPage elements.