Share via


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

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

See Also

Reference

PromoCodeRecordCollection Class

PromoCodeRecordCollection Members

Remove Overload

Microsoft.CommerceServer.Runtime.Orders Namespace