Class VariantGroupCollection
- Namespace
- Dynamicweb.Ecommerce.Variants
- Assembly
- Dynamicweb.Ecommerce.dll
A collection of variant groups
[Serializable]
[Obsolete("Dont use this.")]
public class VariantGroupCollection : Collection<VariantGroup>, IList<VariantGroup>, ICollection<VariantGroup>, IReadOnlyList<VariantGroup>, IReadOnlyCollection<VariantGroup>, IList, ICollection, IEnumerable<VariantGroup>, IEnumerable
- Inheritance
-
VariantGroupCollection
- Implements
- Inherited Members
- Extension Methods
Properties
this[int]
Gets or sets the element at the specified index.
[Obsolete("Dont use this.")]
public VariantGroup this[int index] { get; }
Parameters
indexint
Property Value
- VariantGroup
- The element at the specified index.
Exceptions
- ArgumentOutOfRangeException
indexis not a valid index in the IList.- NotSupportedException
- The property is set and the IList is read-only.
Methods
Contains(VariantGroup, bool)
Determines whether the collection contains the specified variant group.
[Obsolete("Dont use this.")]
public bool Contains(VariantGroup variantGroup, bool loopGroups)
Parameters
variantGroupVariantGroup- The variant group.
loopGroupsbool- If set to
trueloop groups.
Returns
- bool
trueif contains the specified variant group, otherwise,false.
FindOptionById(string)
Returns the option specified by the id, regardless of what group it is in.
[Obsolete("Dont use this.")]
public VariantOption FindOptionById(string variantOptionID)
Parameters
variantOptionIDstring
Returns
- VariantOption
- The instance of the VariantOption
IndexOf(string)
Searches the VariantGroup list for the existance of id
[Obsolete("Dont use this.")]
public int IndexOf(string id)
Parameters
idstring- The id.
Returns
- int
- if id is found in the collection the index of that position is returned, otherwise -1
ItemById(string)
Gets the item by id.
[Obsolete("Dont use this.")]
public VariantGroup ItemById(string id)
Parameters
idstring- The item id.
Returns
Load(CommandBuilder)
Loads the specified SQL.
[Obsolete("Dont use this.")]
public void Load(CommandBuilder commandBuilder)
Parameters
commandBuilderCommandBuilder- The SQL.
Remove(VariantGroup, bool)
Removes the specified variant group.
[Obsolete("Dont use this.")]
public void Remove(VariantGroup variantGroup, bool removeGroup)
Parameters
variantGroupVariantGroup- The variant group.
removeGroupbool- If set to
trueremove group.