Partager via


OrderGroupId Property

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Gets the order group ID.

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

Syntax

'Declaration
Public ReadOnly Property OrderGroupId As Guid
'Usage
Dim instance As OrderGroup
Dim value As Guid

value = instance.OrderGroupId
public Guid OrderGroupId { get; }
public:
property Guid OrderGroupId {
    Guid get ();
}
public function get OrderGroupId () : Guid

Property Value

Type: System..::.Guid
An identifier (GUID) containing the order group ID.

Exceptions

Exception Condition
InvalidOperationException

The order group has been disposed, either directly or by conversion from an OrderTemplate to a Basket or a Basket to a PurchaseOrder.

Remarks

OrderGroupId is a generated GUID that is generated during construction of an OrderGroup-derived object, such as Basket, OrderTemplate, or PurchaseOrder).

OrderGroupId is unique across all different OrderGroup derived classes. When conversion from OrderTemplate or Basket to PurchaseOrder occurs, the OrderGroupId is not maintained - a new OrderGroupId is generated.

Permissions

See Also

Reference

OrderGroup Class

OrderGroup Members

Microsoft.CommerceServer.Runtime.Orders Namespace