Remove Method (Int32)
Removes the OrderForm at the specified index 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 ( _
index As Integer _
)
'Usage
Dim instance As OrderFormCollection
Dim index As Integer
instance.Remove(index)
public void Remove(
int index
)
public:
void Remove(
int index
)
public function Remove(
index : int
)
Parameters
- index
Type: System..::.Int32
The zero-based index of the OrderForm to remove.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | index is out of the range of 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.