Class Sort
Class representing a REST API sort
See Tableau API Reference for more details.
Namespace: Tableau.Migration.Net.Rest.Sorting
Assembly: Tableau.Migration.dll
Syntax
public class Sort
Constructors
Sort(string, bool)
Creates a new Sort instance.
Declaration
public Sort(string field, bool ascending)
Parameters
Type | Name | Description |
---|---|---|
string | field | The field to sort on. |
bool | ascending | Try to sort ascending, false to sort descending. |
Sort(string, ListSortDirection)
Creates a new Sort instance.
Declaration
public Sort(string field, ListSortDirection direction)
Parameters
Type | Name | Description |
---|---|---|
string | field | The field to sort on. |
ListSortDirection | direction | The direction to sort. |
Properties
Direction
Gets the direction to sort.
Declaration
public ListSortDirection Direction { get; }
Property Value
Type | Description |
---|---|
ListSortDirection |
Expression
Gets the sort's expression for use in query strings.
Declaration
public string Expression { get; }
Property Value
Type | Description |
---|---|
string |
Field
Gets the field to sort on.
Declaration
public string Field { get; }
Property Value
Type | Description |
---|---|
string |