Partilhar via


OrderGroup Constructor (StatusCodes, Guid, Guid)

Initializes a new instance of the OrderGroup class with the specified user identifier and OrderContext.

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

Syntax

'Declaration
Protected Friend Sub New ( _
    statusCode As StatusCodes, _
    userId As Guid, _
    orderGroupId As Guid _
)
'Usage
Dim statusCode As StatusCodes
Dim userId As Guid
Dim orderGroupId As Guid

Dim instance As New OrderGroup(statusCode, _
    userId, orderGroupId)
protected internal OrderGroup(
    StatusCodes statusCode,
    Guid userId,
    Guid orderGroupId
)
protected public:
OrderGroup(
    StatusCodes statusCode, 
    Guid userId, 
    Guid orderGroupId
)
protected internal function OrderGroup(
    statusCode : StatusCodes, 
    userId : Guid, 
    orderGroupId : Guid
)

Parameters

  • userId
    Type: System..::.Guid
    The user identification for the current user.

Remarks

The status codes enumeration value shall be one of the following:

OrderGroup is the base class for the Basket, PurchaseOrder, and OrderTemplate order group types in the order capture system. An order can go through several stages -- from a wish list, to a basket, to a completed order. In all incarnations of an order, the OrderGroup is the base class that backs all of these objects. OrderGroup contains all that is common across these different stages of an order. Derived classes can add methods and properties that are specific to that stage. For example, a derived Basket class might add methods for checking inventory. A derived PurchaseOrder class might contain methods to return shipping status.

OrderGroup supports the IEnumerable interface to allow for easy enumeration of all the strongly typed and non-strongly typed properties exposed by the order group instance. You may further sub-type these classes to create custom order group sub-types. However, the OrderGroup class itself is non-extensible. OrderGroup exposes a base set of properties and methods common to all OrderGroup sub-types. An order group instance is uniquely identifiable by the OrderGroupId.

Permissions

See Also

Reference

OrderGroup Class

OrderGroup Members

OrderGroup Overload

Microsoft.CommerceServer.Runtime.Orders Namespace