Class SortOption
Defines a field to be used for sorting search query results
Inheritance
System.Object
SortOption
Assembly: PnP.Core.dll
Syntax
public class SortOption : object
Constructors
Creates SortOption class, defaults to ascending sort order
Declaration
public SortOption(string property)
Parameters
System.String
property
Property to sort on
|
Declaration
public SortOption(string property, SortDirection sort)
Parameters
System.String
property
Property to sort on
|
SortDirection
sort
Sort order to use
|
Properties
Declaration
public string Property { get; }
Property Value
Declaration
public SortDirection Sort { get; }
Property Value
Methods
Returns the sort option so it can be used in a search query
Declaration
public override string ToString()
Returns
System.String
Sort option to use in a query
|