DiscountApplicationRecordCollection Constructor
Initializes a new instance of the DiscountApplicationRecordCollection class using the specified parent line item and discount.
Namespace: Microsoft.CommerceServer.Runtime.Orders
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public Sub New ( _
parentLineItem As LineItem, _
lineItemDiscount As Boolean _
)
'Usage
Dim parentLineItem As LineItem
Dim lineItemDiscount As Boolean
Dim instance As New DiscountApplicationRecordCollection(parentLineItem, _
lineItemDiscount)
public DiscountApplicationRecordCollection(
LineItem parentLineItem,
bool lineItemDiscount
)
public:
DiscountApplicationRecordCollection(
LineItem^ parentLineItem,
bool lineItemDiscount
)
public function DiscountApplicationRecordCollection(
parentLineItem : LineItem,
lineItemDiscount : boolean
)
Parameters
- parentLineItem
Type: Microsoft.CommerceServer.Runtime.Orders..::.LineItem
A LineItem describing the parent line item to which these discounts belong.
- lineItemDiscount
Type: System..::.Boolean
true when this discount collection applies to line item discounts, false when this collection holds order discounts.
Remarks
Manages the collection of discount records associated with the line items of an order form.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
DiscountApplicationRecordCollection Class