Class SortOption
Options representing how to sort the results of a session query.
Inherited Members
Namespace: Unity.Services.Multiplayer
Assembly: Unity.Services.Multiplayer.dll
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 |