Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- shippingMethod
Type: Microsoft.CommerceServer.Orders..::.ShippingMethod
The ShippingMethod to be removed. May not be nullNothingnullptra null reference (Nothing in Visual Basic).
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
- 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