Remove Method (ShippingDiscountRecord)
Removes the specified ShippingDiscountRecord from the collection.
Namespace: Microsoft.CommerceServer.Runtime.Orders
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public Sub Remove ( _
shippingDiscountRecord As ShippingDiscountRecord _
)
'Usage
Dim instance As ShippingDiscountCollection
Dim shippingDiscountRecord As ShippingDiscountRecord
instance.Remove(shippingDiscountRecord)
public void Remove(
ShippingDiscountRecord shippingDiscountRecord
)
public:
void Remove(
ShippingDiscountRecord^ shippingDiscountRecord
)
public function Remove(
shippingDiscountRecord : ShippingDiscountRecord
)
Parameters
- shippingDiscountRecord
Type: Microsoft.CommerceServer.Runtime.Orders..::.ShippingDiscountRecord
The ShippingDiscountRecord to remove. May not be nullNothingnullptra null reference (Nothing in Visual Basic).
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | shippingDiscountRecord is nullNothingnullptra null reference (Nothing in Visual Basic). |
Remarks
Removes the specified ShippingDiscountRecord from the collection.
Successfully calling Remove updates LastModified.
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
ShippingDiscountCollection Class