Class GroupCollection
- Namespace
- Dynamicweb.Ecommerce.Products
- Assembly
- Dynamicweb.Ecommerce.dll
Collection of product groups.
[Serializable]
public class GroupCollection : Collection<Group>, IList<Group>, ICollection<Group>, IReadOnlyList<Group>, IReadOnlyCollection<Group>, IEnumerable<Group>, IList, ICollection, IEnumerable
- Inheritance
-
GroupCollection
- Implements
- Inherited Members
- Extension Methods
Constructors
GroupCollection()
Initializes new instance of the class.
public GroupCollection()
GroupCollection(IEnumerable<Group>)
Initializes new instance of the class.
public GroupCollection(IEnumerable<Group> groups)
Parameters
groups
IEnumerable<Group>- The groups to be added into the list.
Methods
ContainsById(string)
Determines does current list contain product group with given ID.
public bool ContainsById(string groupId)
Parameters
groupId
string- The group ID to find in the list.
Returns
- bool
True
if collection contain a group, otherwiseFalse
.
Sort(GroupCollectionSortBy)
Sorts the groups in the collection.
public void Sort(GroupCollectionSortBy sortBy)
Parameters
sortBy
GroupCollectionSortBy- The sort by parameter
Sort(GroupCollectionSortBy, string)
Sorts the groups in the collection.
public void Sort(GroupCollectionSortBy sortBy, string shopId)
Parameters
sortBy
GroupCollectionSortBy- The sort by parameter
shopId
string- The groups shopId
SortByParentGroupOrder(string)
public void SortByParentGroupOrder(string parentId)
Parameters
parentId
string