Add Method
Adds the specified OrderGroup to the end of the OrderGroupCollection.
Namespace: Microsoft.CommerceServer.Runtime.Orders
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public Sub Add ( _
orderGroup As OrderGroup _
)
'Usage
Dim instance As OrderGroupCollection
Dim orderGroup As OrderGroup
instance.Add(orderGroup)
public void Add(
OrderGroup orderGroup
)
public:
void Add(
OrderGroup^ orderGroup
)
public function Add(
orderGroup : OrderGroup
)
Parameters
- orderGroup
Type: Microsoft.CommerceServer.Runtime.Orders..::.OrderGroup
The OrderGroup to add. Cannot be nullNothingnullptra null reference (Nothing in Visual Basic).
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | orderGroup is nullNothingnullptra null reference (Nothing in Visual Basic). |
EntityAlreadyExistsException | An order group with the same OrderGroupId already exists in the current instance. |
Remarks
Adds the specified OrderGroup to the end of the OrderGroupCollection.
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.