November Happy Hour will be moved to Thursday December 5th.

Class LineItemDiscountCollection

Collection of line item discounts.

Inheritance
System.Object
LineItemDiscountCollection
Implements
System.Collections.IList
System.Collections.ICollection
System.Collections.Generic.IEnumerable<LineItemDiscount>
System.Collections.IEnumerable
Namespace: Mediachase.Commerce.Orders
Assembly: Mediachase.Commerce.dll
Version: 13.30.0
Syntax
[Obsolete("Use promotion system in EPiServer.Commerce.Marketing instead. Will be removed in a future major release, but not earlier than August 2018.")]
public class LineItemDiscountCollection : SimpleObjectCollectionBase<LineItemDiscount>, IList, ICollection, IEnumerable<LineItemDiscount>, IEnumerable

Constructors

LineItemDiscountCollection()

Initializes a new instance of the LineItemDiscountCollection class.

Declaration
public LineItemDiscountCollection()

LineItemDiscountCollection(LineItem)

Initializes a new instance of the LineItemDiscountCollection class.

Declaration
public LineItemDiscountCollection(LineItem parent)
Parameters
Type Name Description
LineItem parent

The parent.

Properties

Parent

Gets the parent line item collection belongs to.

Declaration
public LineItem Parent { get; }
Property Value
Type Description
LineItem

The parent.

Methods

Add(LineItemDiscount)

Adds the specified value.

Declaration
public override int Add(LineItemDiscount value)
Parameters
Type Name Description
LineItemDiscount value

The value.

Returns
Type Description
System.Int32
Overrides
Mediachase.Commerce.Storage.SimpleObjectCollectionBase<Mediachase.Commerce.Orders.LineItemDiscount>.Add(Mediachase.Commerce.Orders.LineItemDiscount)

Implements

System.Collections.IList
System.Collections.ICollection
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable