Partager via


Remove Method (Int32)

Removes the OrderAddress at the specified index from the current 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 OrderAddressCollection
Dim index As Integer

instance.Remove(index)
public void Remove(
    int index
)
public:
void Remove(
    int index
)
public function Remove(
    index : int
)

Parameters

Exceptions

Exception Condition
ArgumentOutOfRangeException

index is out of the range of the current instance.

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