다음을 통해 공유


Add Method

Add a DiscountApplicationRecord to the end of the DiscountApplicationRecordCollection.

Namespace:  Microsoft.CommerceServer.Runtime.Orders
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

Syntax

'Declaration
Public Sub Add ( _
    discountApplicationRecord As DiscountApplicationRecord _
)
'Usage
Dim instance As DiscountApplicationRecordCollection
Dim discountApplicationRecord As DiscountApplicationRecord

instance.Add(discountApplicationRecord)
public void Add(
    DiscountApplicationRecord discountApplicationRecord
)
public:
void Add(
    DiscountApplicationRecord^ discountApplicationRecord
)
public function Add(
    discountApplicationRecord : DiscountApplicationRecord
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

discountApplicationRecord is nullNothingnullptra null reference (Nothing in Visual Basic).

ArgumentException

The entry being added is already a member of a collection.

EntityAlreadyExistsException

A DiscountApplicationRecord that matches the new discount is already in the current instance.

Remarks

Add a DiscountApplicationRecord to the end of the DiscountApplicationRecordCollection.

Successfully calling Add updates LastModified.

Permissions

See Also

Reference

DiscountApplicationRecordCollection Class

DiscountApplicationRecordCollection Members

Microsoft.CommerceServer.Runtime.Orders Namespace