Partilhar via


Remove Method (Guid)

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Removes the OrderGroup, based on the specified order group identifier, from the collection.

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

Syntax

'Declaration
Public Sub Remove ( _
    orderGroupId As Guid _
)
'Usage
Dim instance As OrderGroupCollection
Dim orderGroupId As Guid

instance.Remove(orderGroupId)
public void Remove(
    Guid orderGroupId
)
public:
void Remove(
    Guid orderGroupId
)
public function Remove(
    orderGroupId : Guid
)

Parameters

Exceptions

Exception Condition
ArgumentException

An object with the specified orderGroupId does not exist in the collection.

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