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