Share via


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

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

See Also

Reference

OrderGroupCollection Class

OrderGroupCollection Members

Microsoft.CommerceServer.Runtime.Orders Namespace