Partilhar via


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

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

See Also

Reference

OrderGroupCollection Class

OrderGroupCollection Members

Remove Overload

Microsoft.CommerceServer.Runtime.Orders Namespace