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
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.Commerce.Orders
Assembly: Mediachase.Commerce.dll
Version: 10.8.0Syntax
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