Class ResultPage<T>

The ResultPage class represents a single page of results retrieved from the Social platform.

Inheritance
System.Object
ResultPage<T>
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.Social.Common
Assembly: EPiServer.Social.Common.dll
Version: 1.5.4
Syntax
public class ResultPage<T>
Type Parameters
Name Description
T

Type of the result items comprising the page

Constructors

ResultPage(IEnumerable<T>, Int64, PageInfo, Boolean)

Constructor

Declaration
public ResultPage(IEnumerable<T> results, long totalCount, PageInfo info, bool hasMore)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<T> results

Collection of result items comprising the page

System.Int64 totalCount

Total count of items resulting from the query

PageInfo info

Information describing the specifications of the page

System.Boolean hasMore

Boolean denoting whether the query has found more items beyond this page.

Properties

HasMore

Gets whether there are additional items to be returned in a subsequent request.

Declaration
public bool HasMore { get; }
Property Value
Type Description
System.Boolean

Info

Gets information describing the specifications of this page.

Declaration
public PageInfo Info { get; }
Property Value
Type Description
PageInfo

Results

Gets the collection of result items comprising the page.

Declaration
public IEnumerable<T> Results { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<T>

TotalCount

Gets the total count of items resulting from the query that produced this page.

Declaration
public long TotalCount { get; }
Property Value
Type Description
System.Int64
arrow_upward