Partilhar via


OrderFormId Property

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

Gets the order form identifier of the parent order form that contains the current PromoCode instance.

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

Syntax

'Declaration
Public ReadOnly Property OrderFormId As Guid
'Usage
Dim instance As PromoCodeRecord
Dim value As Guid

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

Property Value

Type: System..::.Guid
The OrderFormId of the parent order form that contains the current instance.

Remarks

Gets the order form identifier of the parent order form that contains the current instance.

OrderFormId is set when the PromoCodeRecord gets added to an PromoCodeRecordCollection of an OrderForm. If the OrderFormId 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