Share via


Remove Method (Guid)

Removes the OrderForm, based on the specified unique identifier, from the current collection.

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

Syntax

'Declaration
Public Sub Remove ( _
    orderFormId As Guid _
)
'Usage
Dim instance As OrderFormCollection
Dim orderFormId As Guid

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

Parameters

Exceptions

Exception Condition
ArgumentException

An order form with the specified orderFormId does not exist in the current collection.

Remarks

Removes a specified OrderForm from the collection. When a OrderForm is removed from the collection, all subsequent OrderForm objects move up one index in the collection and the collection count is decremented.

Calling Remove updates LastModified.

Permissions

See Also

Reference

OrderFormCollection Class

OrderFormCollection Members

Remove Overload

Microsoft.CommerceServer.Runtime.Orders Namespace