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
- shippingGroupId
Type: System..::.Guid
The identifier of the ShippingMethod to remove.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
ShippingMethodCollection Class