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
- orderGroupId
Type: System..::.Guid
The identifier of the OrderGroup to be removed.
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
- 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.