Class QueryOptions
Represents options for querying
public class QueryOptions
- Inheritance
-
QueryOptions
- Derived
- Inherited Members
Constructors
QueryOptions(int, int?)
public QueryOptions(int skip, int? take = null)
Parameters
Fields
AbsoluteMaxResults
The absolute maximum results returned from a query
public const int AbsoluteMaxResults = 10000
Field Value
Remarks
This limit is applied to prevent excessive resource usage and potential performance issues.
DefaultMaxResults
The default maximum amount of results
public const int DefaultMaxResults = 100
Field Value
Properties
Default
Creates a default QueryOptions
public static QueryOptions Default { get; }
Property Value
Skip
The number of documents to skip in the result set.
public int Skip { get; }
Property Value
Take
The number of documents to take in the result set.
public int Take { get; }
Property Value
Methods
SkipTake(int, int?)
Creates a QueryOptions with the specified parameters
public static QueryOptions SkipTake(int skip, int? take = null)