Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- index
Type: System..::.Int32
The index of the DiscountApplicationRecord to remove.
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