Search Results for

    Show / Hide Table of Contents

    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

    Constructors

    SortOption(String)

    Creates SortOption class, defaults to ascending sort order

    Declaration
    public SortOption(string property)
    Parameters
    System.String property

    Property to sort on

    SortOption(String, SortDirection)

    Creates SortOption class

    Declaration
    public SortOption(string property, SortDirection sort)
    Parameters
    System.String property

    Property to sort on

    SortDirection sort

    Sort order to use

    Properties

    Property

    Property to sort on

    Declaration
    public string Property { get; }
    Property Value
    System.String

    Sort

    Sort order to use

    Declaration
    public SortDirection Sort { get; }
    Property Value
    SortDirection

    Methods

    ToString()

    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

    Back to top PnP Core SDK
    Generated by DocFX with Material UI
    spacer