Remove Method (OrderAddress)
Removes the specified OrderAddress from the current order address collection.
Namespace: Microsoft.CommerceServer.Runtime.Orders
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public Sub Remove ( _
orderAddress As OrderAddress _
)
'Usage
Dim instance As OrderAddressCollection
Dim orderAddress As OrderAddress
instance.Remove(orderAddress)
public void Remove(
OrderAddress orderAddress
)
public:
void Remove(
OrderAddress^ orderAddress
)
public function Remove(
orderAddress : OrderAddress
)
Parameters
- orderAddress
Type: Microsoft.CommerceServer.Runtime.Orders..::.OrderAddress
The OrderAddress to be removed. Cannot be nullNothingnullptra null reference (Nothing in Visual Basic).
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | orderAddress is nullNothingnullptra null reference (Nothing in Visual Basic). |
Remarks
Removes a specified OrderAddress from the collection. When a OrderAddress is removed from the collection, all subsequent OrderAddress objects move up one index in the collection and the collection count is decremented.
If there are no line items in the collection, the function returns with no exception.
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.