Partager via


OrderGroupId Property

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

Gets the identifier of the grandparent order group to which the current instance belongs.

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 PromoCodeRecord
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
The identifier to the grandparent OrderGroup to which the current instance belongs.

Remarks

Gets the grandparent Order group to which the current instance belongs. OrderGroupId is set when the PromoCodeRecord gets added to an PromoCodeRecordCollection of an OrderForm. If the OrderGroupId is not associated with a OrderForm, the value is an empty GUID (Guid.Empty). This is encapsulated within the implementation of SetParent

Permissions

See Also

Reference

PromoCodeRecord Class

PromoCodeRecord Members

Microsoft.CommerceServer.Runtime.Orders Namespace