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