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
index
int
Property Value
- VariantGroup
- The element at the specified index.
Exceptions
- ArgumentOutOfRangeException
index
is 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
variantGroup
VariantGroup- The variant group.
loopGroups
bool- If set to
true
loop groups.
Returns
- bool
true
if 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
variantOptionID
string
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
id
string- 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
id
string- The item id.
Returns
Load(CommandBuilder)
Loads the specified SQL.
[Obsolete("Dont use this.")]
public void Load(CommandBuilder commandBuilder)
Parameters
commandBuilder
CommandBuilder- The SQL.
Remove(VariantGroup, bool)
Removes the specified variant group.
[Obsolete("Dont use this.")]
public void Remove(VariantGroup variantGroup, bool removeGroup)
Parameters
variantGroup
VariantGroup- The variant group.
removeGroup
bool- If set to
true
remove group.