v1.0.0
Latest
2022.3+
Class SortOption
Options representing how to sort the results of a session query.
Inheritance
System.Object
SortOption
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.Multiplayer
Syntax
public class SortOption
Constructors
SortOption()
Construct a sort object with default order and field (creation time ascending).
Declaration
public SortOption()
SortOption(SortOrder, SortField)
Construct a sort object with the provided order and field.
Declaration
public SortOption(SortOrder order, SortField field)
Parameters
Type | Name | Description |
---|---|---|
SortOrder | order | Order in which to sort results. |
SortField | field | Field on which to sort results. |
Properties
Field
Field to sort results by.
Declaration
public SortField Field { get; set; }
Property Value
Type | Description |
---|---|
SortField |
Order
Order in which results will be sorted.
Declaration
public SortOrder Order { get; set; }
Property Value
Type | Description |
---|---|
SortOrder |