Dijeli putem


OrderGroup Constructor (StatusCodes, Guid)

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

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 _
)
'Usage
Dim statusCode As StatusCodes
Dim userId As Guid

Dim instance As New OrderGroup(statusCode, _
    userId)
protected internal OrderGroup(
    StatusCodes statusCode,
    Guid userId
)
protected public:
OrderGroup(
    StatusCodes statusCode, 
    Guid userId
)
protected internal function OrderGroup(
    statusCode : StatusCodes, 
    userId : 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