Class SortColumn
Defines a sort directive, column sort order, as received from a dojo.store.JsonRest instance
Inheritance
Inherited Members
Namespace: EPiServer.Shell.Services.Rest
Assembly: EPiServer.Shell.dll
Version: 10.10.4Syntax
public class SortColumn
Constructors
SortColumn()
Declaration
public SortColumn()
Properties
ColumnName
Name of the column to perform sorting on.
Declaration
public string ColumnName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
SortDescending
A flag indicating whether to sort ascending or descending.
Declaration
public bool SortDescending { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Methods
Equals(Object)
Determines whether the specified System.Object is equal to this instance.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The System.Object to compare with this instance. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
GetHashCode()
Calculates Returns a hash code by adding the hash code of the
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |
Overrides
Parse(String)
Tries to parse a string as a list of sort directives.
Declaration
public static IEnumerable<SortColumn> Parse(string sortRules)
Parameters
Type | Name | Description |
---|---|---|
System.String | sortRules | The query param containing the sort information. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<SortColumn> |
|
Operators
Equality(SortColumn, SortColumn)
Implements the operator == using the Equals(Object) method.
Declaration
public static bool operator ==(SortColumn left, SortColumn right)
Parameters
Type | Name | Description |
---|---|---|
SortColumn | left | The left instance. |
SortColumn | right | The right instance. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Inequality(SortColumn, SortColumn)
Implements the operator != using the Equals(Object) method.
Declaration
public static bool operator !=(SortColumn left, SortColumn right)
Parameters
Type | Name | Description |
---|---|---|
SortColumn | left | The left instance. |
SortColumn | right | The right instance. |
Returns
Type | Description |
---|---|
System.Boolean |
|