Jaa


Add Method

Adds the specified OrderForm to the end of the OrderFormCollection.

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

Syntax

'Declaration
Public Sub Add ( _
    orderForm As OrderForm _
)
'Usage
Dim instance As OrderFormCollection
Dim orderForm As OrderForm

instance.Add(orderForm)
public void Add(
    OrderForm orderForm
)
public:
void Add(
    OrderForm^ orderForm
)
public function Add(
    orderForm : OrderForm
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

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

ArgumentException

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

EntityAlreadyExistsException

An OrderForm with the same name or ID already exists in the current collection.

ConfiguredLimitExceededException

The number of OrderForm objects within the current instance is already at the OrderFormCountPerOrderGroupLimit set in Web.config.

Remarks

Adds the specified OrderForm to the end of the OrderFormCollection.

Calling Add updates LastModified, ParentOrderGroup, and OrderGroupId .

Permissions

See Also

Reference

OrderFormCollection Class

OrderFormCollection Members

Microsoft.CommerceServer.Runtime.Orders Namespace