Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- orderForm
Type: Microsoft.CommerceServer.Runtime.Orders..::.OrderForm
The OrderForm to add to the collection. Cannot not be nullNothingnullptra null reference (Nothing in Visual Basic).
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
- 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.