Remove Method (PromoCodeRecord)
Removes the specified PromoCodeRecord from the collection.
Namespace: Microsoft.CommerceServer.Runtime.Orders
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public Sub Remove ( _
promoCodeRecord As PromoCodeRecord _
)
'Usage
Dim instance As PromoCodeRecordCollection
Dim promoCodeRecord As PromoCodeRecord
instance.Remove(promoCodeRecord)
public void Remove(
PromoCodeRecord promoCodeRecord
)
public:
void Remove(
PromoCodeRecord^ promoCodeRecord
)
public function Remove(
promoCodeRecord : PromoCodeRecord
)
Parameters
- promoCodeRecord
Type: Microsoft.CommerceServer.Runtime.Orders..::.PromoCodeRecord
The PromoCodeRecord to remove. May not be nullNothingnullptra null reference (Nothing in Visual Basic).
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | promoCodeRecord is nullNothingnullptra null reference (Nothing in Visual Basic). |
Remarks
Removes the specified PromoCodeRecord from the collection.
Successfully calling Remove updates LastModified, except when there are no payments or an exception is thrown.
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
PromoCodeRecordCollection Class