Partager via


Remove Method (ShippingMethod)

Removes the specified ShippingMethod from the collection.

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

Syntax

'Declaration
Public Sub Remove ( _
    shippingMethod As ShippingMethod _
)
'Usage
Dim instance As ShippingMethodCollection
Dim shippingMethod As ShippingMethod

instance.Remove(shippingMethod)
public void Remove(
    ShippingMethod shippingMethod
)
public:
void Remove(
    ShippingMethod^ shippingMethod
)
public function Remove(
    shippingMethod : ShippingMethod
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

ShippingMethod is nullNothingnullptra null reference (Nothing in Visual Basic).

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