Udostępnij za pośrednictwem


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

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

See Also

Reference

DiscountApplicationRecordCollection Class

DiscountApplicationRecordCollection Members

Remove Overload

Microsoft.CommerceServer.Runtime.Orders Namespace