Partager via


Remove Method (Int32)

Removes the shipping method at the specified index from the current collection.

Namespace:  Microsoft.CommerceServer.Orders
Assembly:  Microsoft.CommerceServer.Orders.CrossTierTypes (in Microsoft.CommerceServer.Orders.CrossTierTypes.dll)

Syntax

'Declaration
Public Sub Remove ( _
    index As Integer _
)
'Usage
Dim instance As ShippingMethodCollection
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

An element with the specified index does not exist in the collection.

Remarks

Removes a specified ShippingMethod from the collection. When a ShippingMethod is removed from the collection, all subsequent ShippingMethod objects move up one index in the collection and the collection count is decremented.

Permissions

See Also

Reference

ShippingMethodCollection Class

ShippingMethodCollection Members

Remove Overload

Microsoft.CommerceServer.Orders Namespace