Represents ordering information.
InheritanceSystem.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.
Declarationpublic 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 directionThe ordering direction.
System.String cultureThe (ISO) culture to consider when sorting multi-lingual fields.
System.Boolean isCustomFieldA value indicating whether the ordering field is a custom user property.
Properties View Source CultureGets (ISO) culture to consider when sorting multi-lingual fields.
Declarationpublic string Culture { get; }
Property Value Type Description System.String View Source Direction
Gets the ordering direction.
Declarationpublic Direction Direction { get; }
Property Value View Source IsCustomField
Gets a value indicating whether the ordering field is a custom user property.
Declarationpublic bool IsCustomField { get; }
Property Value Type Description System.Boolean View Source IsEmpty
Gets a value indicating whether this ordering is the default ordering.
Declarationpublic bool IsEmpty { get; }
Property Value Type Description System.Boolean View Source IsInvariant
Gets a value indicating whether the culture of this ordering is invariant.
Declarationpublic 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.
Declarationpublic 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.
Declarationpublic 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 directionThe ordering direction.
System.String cultureThe (ISO) culture to consider when sorting multi-lingual fields.
System.Boolean isCustomFieldA value indicating whether the ordering field is a custom user property.
Returns View Source ByDefault()Gets the default Ordering instance.
Declarationpublic 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