Partager via


Remove Method (Guid)

Removes the shipping method with the specified shipping group identifier from the collection.

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

Syntax

'Declaration
Public Sub Remove ( _
    shippingGroupId As Guid _
)
'Usage
Dim instance As ShippingMethodCollection
Dim shippingGroupId As Guid

instance.Remove(shippingGroupId)
public void Remove(
    Guid shippingGroupId
)
public:
void Remove(
    Guid shippingGroupId
)
public function Remove(
    shippingGroupId : Guid
)

Parameters

Exceptions

Exception Condition
ArgumentException

A ShippingMethod with the specified shippingGroupId is not present 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