Class OrderByCollection
- Namespace
- Dynamicweb.Content.Items.Queries
- Assembly
- Dynamicweb.dll
Represents a collection of item field metadata.
public class OrderByCollection : Collection<OrderBy>, IList<OrderBy>, ICollection<OrderBy>, IReadOnlyList<OrderBy>, IReadOnlyCollection<OrderBy>, IEnumerable<OrderBy>, IList, ICollection, IEnumerable
- Inheritance
-
OrderByCollection
- Implements
- Inherited Members
- Extension Methods
Constructors
OrderByCollection()
Initializes a new instance of an object.
public OrderByCollection()
OrderByCollection(IEnumerable<OrderBy>)
Initializes a new instance of an object.
public OrderByCollection(IEnumerable<OrderBy> items)
Parameters
items
IEnumerable<OrderBy>Elements to be copied to this collection.
Methods
Find(string)
Returns the first element with the given field name.
public OrderBy Find(string field)
Parameters
field
stringField name.
Returns
- OrderBy
The first element with the given field name.
FindIndex(string)
Returns an index of a first element from the collection with the given field name.
public int FindIndex(string field)
Parameters
field
stringField name.
Returns
- int
An index of a first element from the collection with the given field name.