v1.0.0
Latest
2022.3+
Class QueryOrder
An order for an individual field that is applied to a query.
Inheritance
System.Object
QueryOrder
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Unity.Services.Lobbies.Models
Syntax
public class QueryOrder
Constructors
QueryOrder(Boolean, QueryOrder.FieldOptions)
An order for an individual field that is applied to a query.
Declaration
public QueryOrder(bool asc = false, QueryOrder.FieldOptions field = (QueryOrder.FieldOptions)0)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | asc | Whether to sort in ascending or descending order. |
QueryOrder.FieldOptions | field | The name of the field to order on. |
Properties
Asc
Whether to sort in ascending or descending order.
Declaration
public bool Asc { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Field
The name of the field to order on.
Declaration
public QueryOrder.FieldOptions Field { get; }
Property Value
Type | Description |
---|---|
QueryOrder.FieldOptions |