Search Results for

    Show / Hide Table of Contents

    Class SortOption

    Defines a field to be used for sorting search query results

    Inheritance
    object
    SortOption
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: PnP.Core.Model.SharePoint
    Assembly: PnP.Core.dll
    Syntax
    public class SortOption

    Constructors

    SortOption(string)

    Creates SortOption class, defaults to ascending sort order

    Declaration
    public SortOption(string property)
    Parameters
    string property

    Property to sort on

    SortOption(string, SortDirection)

    Creates SortOption class

    Declaration
    public SortOption(string property, SortDirection sort)
    Parameters
    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
    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
    string

    Sort option to use in a query

    Overrides
    object.ToString()
    Back to top PnP Core SDK
    Generated by DocFX with Material UI
    spacer