TaskQueryOptions
Controls paging, filtering, sorting, and argument retrieval in the task service fetch APIs.
Constructor
TaskQueryOptions() creates a query options object. Set the options needed by the request explicitly instead of relying on unspecified defaults.
Properties
| Property | Usage | Example |
|---|---|---|
Skip | Number of records to omit before returning a page. Start at zero. | 0 |
Take | Requested page size. Use a positive, bounded value. | 100 |
Filter | Filter expression. The task examples use nested ArrayList values. | A status comparison joined with or. |
Sort | Sort descriptors identifying a field and direction. | new[] { new Sorting { Selector = "taskId", Desc = true } } |
RequireTotalCount | Requests a total record count with the result. | true |
IsInOutArgsRequired | Requests task input/output argument values. | false when arguments are not needed. |
Filter and sort expressions
A comparison uses a field name, an operator, and a value: new ArrayList { "status", "=", "Completed" }. A compound expression joins comparisons with a logical operator. The FetchAllTasksAsync example combines Completed and Assigned status comparisons using or.
Selector identifies the sort field; Desc = true requests descending order. The task examples use System.Collections.ArrayList and SDK query types. Include the namespaces required by your installed assembly.
These examples illustrate the query shape, not an exhaustive list of supported fields or operators. Verify additional fields, operators, declared property types, page limits, and null/default behavior against the SDK build used by your application.