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