Show / Hide Table of Contents

Class PagedResults<T>

Represents a page of results from a query with continuation support.

Inheritance
object
PagedResults<T>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Benday.CosmosDb.Repositories
Assembly: Benday.CosmosDb.dll
Syntax
public class PagedResults<T>
Type Parameters
Name Description
T

The type of items in the result set

Constructors

| Edit this page View Source

PagedResults(IEnumerable<T>, string?, bool, double)

Initializes a new instance of the PagedResults class.

Declaration
public PagedResults(IEnumerable<T> items, string? continuationToken = null, bool hasMoreResults = false, double totalRequestCharge = 0)
Parameters
Type Name Description
IEnumerable<T> items

The items in this page

string continuationToken

Token for retrieving the next page

bool hasMoreResults

Whether more results are available

double totalRequestCharge

The total request charge in RUs for this query

Properties

| Edit this page View Source

ContinuationToken

Gets the continuation token for retrieving the next page. Null if there are no more results.

Declaration
public string? ContinuationToken { get; }
Property Value
Type Description
string
| Edit this page View Source

HasMoreResults

Gets a value indicating whether more results are available.

Declaration
public bool HasMoreResults { get; }
Property Value
Type Description
bool
| Edit this page View Source

Items

Gets the items in this page of results.

Declaration
public IEnumerable<T> Items { get; }
Property Value
Type Description
IEnumerable<T>
| Edit this page View Source

TotalRequestCharge

Gets the total request charge in RUs for this query.

Declaration
public double TotalRequestCharge { get; }
Property Value
Type Description
double
  • Edit this page
  • View Source
In this article
Back to top Copyright © www.benday.com | info@benday.com