Partager via


Remove Method (Int32)

Removes the discount at the specified index from the current collection.

Namespace:  Microsoft.CommerceServer.Runtime.Orders
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

Syntax

'Declaration
Public Sub Remove ( _
    index As Integer _
)
'Usage
Dim instance As DiscountApplicationRecordCollection
Dim index As Integer

instance.Remove(index)
public void Remove(
    int index
)
public:
void Remove(
    int index
)
public function Remove(
    index : int
)

Parameters

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