Click or drag to resize
DiscountCollection Class
Represents a group of discounts applied on the same base price.
Inheritance Hierarchy
SystemObject
  CMS.EcommerceDiscountCollection

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 11.0.0
Syntax
C#
public class DiscountCollection : IEnumerable<IDiscount>, 
	IEnumerable

The DiscountCollection type exposes the following members.

Constructors
  NameDescription
Public methodDiscountCollection
Initializes a new instance of the DiscountCollection class that is empty.
Public methodDiscountCollection(IEnumerableIDiscount)
Initializes a new instance of the DiscountCollection class that contains IDiscount elements copied from the specified collection.
Top
Properties
  NameDescription
Public propertyCount
Gets the number of discounts contained in the DiscountCollection.
Top
Methods
  NameDescription
Public methodAdd
Adds a discount to the collection.
Public methodGetEnumerator
Returns an enumerator that iterates through the collection
Top
Extension Methods
  NameDescription
Public Extension MethodBatchIDiscount
Returns input in batches of batchSize size.
(Defined by BaseExtensions.)
Public Extension MethodToHashSetIDiscount
Converts the list of objects to a hash set of distinct values
(Defined by DataExtensions.)
Public Extension MethodToJSON
Returns JSON representation of current instance of IEnumerable.
(Defined by DataExtensions.)
Public Extension MethodToXML
Returns XML representation of current instance of IEnumerable.
(Defined by DataExtensions.)
Top
Thread Safety
Static members of this type are not safe for multi-threaded operations. Instance members of this type are not safe for multi-threaded operations.
See Also