A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://apidocs.umbraco.com/v15/csharp/api/Umbraco.Cms.Core.Services.Ordering.html below:

View Source Class Ordering

Represents ordering information.

Inheritance

System.Object

Namespace: Umbraco.Cms.Core.Services Assembly: Umbraco.Core.dll Syntax Constructors View Source Ordering(String, Direction, String, Boolean)

Initializes a new instance of the Ordering class.

Declaration
public Ordering(string orderBy, Direction direction = Direction.Ascending, string culture = null, bool isCustomField = false)
Parameters Type Name Description System.String orderBy

The name of the ordering field.

Direction direction

The ordering direction.

System.String culture

The (ISO) culture to consider when sorting multi-lingual fields.

System.Boolean isCustomField

A value indicating whether the ordering field is a custom user property.

Properties View Source Culture

Gets (ISO) culture to consider when sorting multi-lingual fields.

Declaration
public string Culture { get; }
Property Value Type Description System.String View Source Direction

Gets the ordering direction.

Declaration
public Direction Direction { get; }
Property Value View Source IsCustomField

Gets a value indicating whether the ordering field is a custom user property.

Declaration
public bool IsCustomField { get; }
Property Value Type Description System.Boolean View Source IsEmpty

Gets a value indicating whether this ordering is the default ordering.

Declaration
public bool IsEmpty { get; }
Property Value Type Description System.Boolean View Source IsInvariant

Gets a value indicating whether the culture of this ordering is invariant.

Declaration
public bool IsInvariant { get; }
Property Value Type Description System.Boolean View Source Next Declaration
public Ordering Next { get; set; }
Property Value View Source OrderBy

Gets the name of the ordering field.

Declaration
public string OrderBy { get; }
Property Value Type Description System.String Methods View Source By(String, Direction, String, Boolean)

Creates a new instance of the Ordering class.

Declaration
public static Ordering By(string orderBy, Direction direction = Direction.Ascending, string culture = null, bool isCustomField = false)
Parameters Type Name Description System.String orderBy

The name of the ordering field.

Direction direction

The ordering direction.

System.String culture

The (ISO) culture to consider when sorting multi-lingual fields.

System.Boolean isCustomField

A value indicating whether the ordering field is a custom user property.

Returns View Source ByDefault()

Gets the default Ordering instance.

Declaration
public static Ordering ByDefault()
Returns

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4