Remove Method (OrderGroup)
Removes the specified OrderGroup from the current order group collection.
Namespace: Microsoft.CommerceServer.Runtime.Orders
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public Sub Remove ( _
orderGroup As OrderGroup _
)
'Usage
Dim instance As OrderGroupCollection
Dim orderGroup As OrderGroup
instance.Remove(orderGroup)
public void Remove(
OrderGroup orderGroup
)
public:
void Remove(
OrderGroup^ orderGroup
)
public function Remove(
orderGroup : OrderGroup
)
Parameters
- orderGroup
Type: Microsoft.CommerceServer.Runtime.Orders..::.OrderGroup
The OrderGroup to be removed. Cannot be nullNothingnullptra null reference (Nothing in Visual Basic).
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | orderGroup is nullNothingnullptra null reference (Nothing in Visual Basic). |
Remarks
Removes a specified OrderGroup from the collection. When an OrderGroup is removed from the collection, all subsequent OrderGroup 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.