Class SortColumnsValueProvider
Represents a value provider for sort directives sent in the query string on the format sort(<+/-><columnName>).
Inheritance
System.Object
SortColumnsValueProvider
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Shell.Services.Rest
Assembly: EPiServer.Shell.dll
Version: 8.11.0Syntax
[ServiceConfiguration(typeof(IRestControllerValueProvider))]
public class SortColumnsValueProvider : IRestControllerValueProvider
Constructors
SortColumnsValueProvider()
Declaration
public SortColumnsValueProvider()
Methods
GetParameterValue(ControllerContext, ParameterDescriptor)
Parses sorting information found in the query string into collection of SortColumn instance.
Declaration
public object GetParameterValue(ControllerContext controllerContext, ParameterDescriptor parameterDescriptor)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Web.Mvc.ControllerContext | controllerContext | The controller context. |
| System.Web.Mvc.ParameterDescriptor | parameterDescriptor | The parameter descriptor. |
Returns
| Type | Description |
|---|---|
| System.Object | A System.Collections.Generic.IEnumerable<T> object if sorting information was found; otherwise |