Class PagedResults<T>
Represents a page of results from a query with continuation support.
Inherited Members
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 SourcePagedResults(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 SourceContinuationToken
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 |
HasMoreResults
Gets a value indicating whether more results are available.
Declaration
public bool HasMoreResults { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Items
Gets the items in this page of results.
Declaration
public IEnumerable<T> Items { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<T> |
TotalRequestCharge
Gets the total request charge in RUs for this query.
Declaration
public double TotalRequestCharge { get; }
Property Value
| Type | Description |
|---|---|
| double |