London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Class PageReferenceCollection

Represents a collection of PageReferences.

Inheritance
System.Object
System.Collections.Generic.List<PageReference>
PageReferenceCollection
Implements
System.Collections.Generic.IList<PageReference>
System.Collections.Generic.ICollection<PageReference>
System.Collections.IList
System.Collections.ICollection
System.Collections.Generic.IReadOnlyList<PageReference>
System.Collections.Generic.IReadOnlyCollection<PageReference>
System.Collections.Generic.IEnumerable<PageReference>
System.Collections.IEnumerable
Inherited Members
System.Collections.Generic.List<EPiServer.Core.PageReference>.System.Collections.IList.get_Item(System.Int32)
System.Collections.Generic.List<EPiServer.Core.PageReference>.System.Collections.IList.set_Item(System.Int32, System.Object)
System.Collections.Generic.List<EPiServer.Core.PageReference>.Add(EPiServer.Core.PageReference)
System.Collections.Generic.List<EPiServer.Core.PageReference>.System.Collections.IList.Add(System.Object)
System.Collections.Generic.List<EPiServer.Core.PageReference>.AddRange(System.Collections.Generic.IEnumerable<EPiServer.Core.PageReference>)
System.Collections.Generic.List<EPiServer.Core.PageReference>.AsReadOnly()
System.Collections.Generic.List<EPiServer.Core.PageReference>.BinarySearch(System.Int32, System.Int32, EPiServer.Core.PageReference, System.Collections.Generic.IComparer<EPiServer.Core.PageReference>)
System.Collections.Generic.List<EPiServer.Core.PageReference>.BinarySearch(EPiServer.Core.PageReference)
System.Collections.Generic.List<EPiServer.Core.PageReference>.BinarySearch(EPiServer.Core.PageReference, System.Collections.Generic.IComparer<EPiServer.Core.PageReference>)
System.Collections.Generic.List<EPiServer.Core.PageReference>.Clear()
System.Collections.Generic.List<EPiServer.Core.PageReference>.Contains(EPiServer.Core.PageReference)
System.Collections.Generic.List<EPiServer.Core.PageReference>.System.Collections.IList.Contains(System.Object)
System.Collections.Generic.List<EPiServer.Core.PageReference>.ConvertAll<TOutput>(System.Converter<EPiServer.Core.PageReference, TOutput>)
System.Collections.Generic.List<EPiServer.Core.PageReference>.CopyTo(EPiServer.Core.PageReference[])
System.Collections.Generic.List<EPiServer.Core.PageReference>.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
System.Collections.Generic.List<EPiServer.Core.PageReference>.CopyTo(System.Int32, EPiServer.Core.PageReference[], System.Int32, System.Int32)
System.Collections.Generic.List<EPiServer.Core.PageReference>.CopyTo(EPiServer.Core.PageReference[], System.Int32)
System.Collections.Generic.List<EPiServer.Core.PageReference>.Exists(System.Predicate<EPiServer.Core.PageReference>)
System.Collections.Generic.List<EPiServer.Core.PageReference>.Find(System.Predicate<EPiServer.Core.PageReference>)
System.Collections.Generic.List<EPiServer.Core.PageReference>.FindAll(System.Predicate<EPiServer.Core.PageReference>)
System.Collections.Generic.List<EPiServer.Core.PageReference>.FindIndex(System.Predicate<EPiServer.Core.PageReference>)
System.Collections.Generic.List<EPiServer.Core.PageReference>.FindIndex(System.Int32, System.Predicate<EPiServer.Core.PageReference>)
System.Collections.Generic.List<EPiServer.Core.PageReference>.FindIndex(System.Int32, System.Int32, System.Predicate<EPiServer.Core.PageReference>)
System.Collections.Generic.List<EPiServer.Core.PageReference>.FindLast(System.Predicate<EPiServer.Core.PageReference>)
System.Collections.Generic.List<EPiServer.Core.PageReference>.FindLastIndex(System.Predicate<EPiServer.Core.PageReference>)
System.Collections.Generic.List<EPiServer.Core.PageReference>.FindLastIndex(System.Int32, System.Predicate<EPiServer.Core.PageReference>)
System.Collections.Generic.List<EPiServer.Core.PageReference>.FindLastIndex(System.Int32, System.Int32, System.Predicate<EPiServer.Core.PageReference>)
System.Collections.Generic.List<EPiServer.Core.PageReference>.ForEach(System.Action<EPiServer.Core.PageReference>)
System.Collections.Generic.List<EPiServer.Core.PageReference>.GetEnumerator()
System.Collections.Generic.List<EPiServer.Core.PageReference>.System.Collections.Generic.IEnumerable<EPiServer.Core.PageReference>.GetEnumerator()
System.Collections.Generic.List<EPiServer.Core.PageReference>.System.Collections.IEnumerable.GetEnumerator()
System.Collections.Generic.List<EPiServer.Core.PageReference>.GetRange(System.Int32, System.Int32)
System.Collections.Generic.List<EPiServer.Core.PageReference>.IndexOf(EPiServer.Core.PageReference)
System.Collections.Generic.List<EPiServer.Core.PageReference>.System.Collections.IList.IndexOf(System.Object)
System.Collections.Generic.List<EPiServer.Core.PageReference>.IndexOf(EPiServer.Core.PageReference, System.Int32)
System.Collections.Generic.List<EPiServer.Core.PageReference>.IndexOf(EPiServer.Core.PageReference, System.Int32, System.Int32)
System.Collections.Generic.List<EPiServer.Core.PageReference>.Insert(System.Int32, EPiServer.Core.PageReference)
System.Collections.Generic.List<EPiServer.Core.PageReference>.System.Collections.IList.Insert(System.Int32, System.Object)
System.Collections.Generic.List<EPiServer.Core.PageReference>.InsertRange(System.Int32, System.Collections.Generic.IEnumerable<EPiServer.Core.PageReference>)
System.Collections.Generic.List<EPiServer.Core.PageReference>.LastIndexOf(EPiServer.Core.PageReference)
System.Collections.Generic.List<EPiServer.Core.PageReference>.LastIndexOf(EPiServer.Core.PageReference, System.Int32)
System.Collections.Generic.List<EPiServer.Core.PageReference>.LastIndexOf(EPiServer.Core.PageReference, System.Int32, System.Int32)
System.Collections.Generic.List<EPiServer.Core.PageReference>.Remove(EPiServer.Core.PageReference)
System.Collections.Generic.List<EPiServer.Core.PageReference>.System.Collections.IList.Remove(System.Object)
System.Collections.Generic.List<EPiServer.Core.PageReference>.RemoveAll(System.Predicate<EPiServer.Core.PageReference>)
System.Collections.Generic.List<EPiServer.Core.PageReference>.RemoveAt(System.Int32)
System.Collections.Generic.List<EPiServer.Core.PageReference>.RemoveRange(System.Int32, System.Int32)
System.Collections.Generic.List<EPiServer.Core.PageReference>.Reverse()
System.Collections.Generic.List<EPiServer.Core.PageReference>.Reverse(System.Int32, System.Int32)
System.Collections.Generic.List<EPiServer.Core.PageReference>.Sort()
System.Collections.Generic.List<EPiServer.Core.PageReference>.Sort(System.Collections.Generic.IComparer<EPiServer.Core.PageReference>)
System.Collections.Generic.List<EPiServer.Core.PageReference>.Sort(System.Int32, System.Int32, System.Collections.Generic.IComparer<EPiServer.Core.PageReference>)
System.Collections.Generic.List<EPiServer.Core.PageReference>.Sort(System.Comparison<EPiServer.Core.PageReference>)
System.Collections.Generic.List<EPiServer.Core.PageReference>.ToArray()
System.Collections.Generic.List<EPiServer.Core.PageReference>.TrimExcess()
System.Collections.Generic.List<EPiServer.Core.PageReference>.TrueForAll(System.Predicate<EPiServer.Core.PageReference>)
System.Collections.Generic.List<EPiServer.Core.PageReference>.Capacity
System.Collections.Generic.List<EPiServer.Core.PageReference>.Count
System.Collections.Generic.List<EPiServer.Core.PageReference>.System.Collections.IList.IsFixedSize
System.Collections.Generic.List<EPiServer.Core.PageReference>.System.Collections.Generic.ICollection<EPiServer.Core.PageReference>.IsReadOnly
System.Collections.Generic.List<EPiServer.Core.PageReference>.System.Collections.IList.IsReadOnly
System.Collections.Generic.List<EPiServer.Core.PageReference>.System.Collections.ICollection.IsSynchronized
System.Collections.Generic.List<EPiServer.Core.PageReference>.System.Collections.ICollection.SyncRoot
System.Collections.Generic.List<EPiServer.Core.PageReference>.Item[System.Int32]
System.Collections.Generic.List<EPiServer.Core.PageReference>.System.Collections.IList.Item[System.Int32]
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: 10.10.4
Syntax
public class PageReferenceCollection : List<PageReference>, IList<PageReference>, ICollection<PageReference>, IList, ICollection, IReadOnlyList<PageReference>, IReadOnlyCollection<PageReference>, IEnumerable<PageReference>, IEnumerable

Constructors

PageReferenceCollection()

Initializes a new instance of the PageReferenceCollection class.

Declaration
public PageReferenceCollection()

PageReferenceCollection(IEnumerable<PageReference>)

Initializes a new instance of the PageReferenceCollection class.

Declaration
public PageReferenceCollection(IEnumerable<PageReference> pageLinks)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<PageReference> pageLinks

The page links.

PageReferenceCollection(IEnumerable<PageReference>, String)

Initializes a new instance of the PageReferenceCollection class.

Declaration
public PageReferenceCollection(IEnumerable<PageReference> pageLinks, string languageID)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<PageReference> pageLinks

The page links.

System.String languageID

The language ID.

PageReferenceCollection(Int32)

Initializes a new instance of the PageReferenceCollection class.

Declaration
public PageReferenceCollection(int capacity)
Parameters
Type Name Description
System.Int32 capacity

The capacity.

PageReferenceCollection(Int32, String)

Initializes a new instance of the PageReferenceCollection class.

Declaration
public PageReferenceCollection(int capacity, string languageID)
Parameters
Type Name Description
System.Int32 capacity

The capacity.

System.String languageID

The language ID.

PageReferenceCollection(String)

Initializes a new instance of the PageReferenceCollection class.

Declaration
public PageReferenceCollection(string languageID)
Parameters
Type Name Description
System.String languageID

The language ID.

Properties

LanguageID

A string indicating what language this collection is sorted by. Null if the sorting isn't dependent of language.

Declaration
public string LanguageID { get; }
Property Value
Type Description
System.String

A string with the language ID, or null.

Methods

Parse(String)

Parses a commaseparated list of page links

Declaration
public static PageReferenceCollection Parse(string s)
Parameters
Type Name Description
System.String s
Returns
Type Description
PageReferenceCollection

ToString()

Generates a comma-separated list with page links

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

Implements

System.Collections.Generic.IList<T>
System.Collections.Generic.ICollection<T>
System.Collections.IList
System.Collections.ICollection
System.Collections.Generic.IReadOnlyList<T>
System.Collections.Generic.IReadOnlyCollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable

Extension Methods