Remove Method (DiscountApplicationRecord)
Removes the specified discount from the current collection.
Namespace: Microsoft.CommerceServer.Runtime.Orders
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public Sub Remove ( _
discountApplicationRecord As DiscountApplicationRecord _
)
'Usage
Dim instance As DiscountApplicationRecordCollection
Dim discountApplicationRecord As DiscountApplicationRecord
instance.Remove(discountApplicationRecord)
public void Remove(
DiscountApplicationRecord discountApplicationRecord
)
public:
void Remove(
DiscountApplicationRecord^ discountApplicationRecord
)
public function Remove(
discountApplicationRecord : DiscountApplicationRecord
)
Parameters
- discountApplicationRecord
Type: Microsoft.CommerceServer.Runtime.Orders..::.DiscountApplicationRecord
The DiscountApplicationRecord to remove.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | discountApplicationRecord is nullNothingnullptra null reference (Nothing in Visual Basic). |
Remarks
Successfully calling Remove updates LastModified.
Removes a specified DiscountApplicationRecord from the collection. When a DiscountApplicationRecord is removed from the collection, all subsequent DiscountApplicationRecord objects move up one index in the collection and the collection count is decremented.
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