Partager via


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

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

See Also

Reference

OrderAddressCollection Class

OrderAddressCollection Members

Remove Overload

Microsoft.CommerceServer.Runtime.Orders Namespace