Share via


ParentOrderForm Property

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

Gets the parent order form for which the current instance belongs.

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

Syntax

'Declaration
Public ReadOnly Property ParentOrderForm As OrderForm
'Usage
Dim instance As PromoCodeRecord
Dim value As OrderForm

value = instance.ParentOrderForm
public OrderForm ParentOrderForm { get; }
public:
property OrderForm^ ParentOrderForm {
    OrderForm^ get ();
}
public function get ParentOrderForm () : OrderForm

Property Value

Type: Microsoft.CommerceServer.Runtime.Orders..::.OrderForm
The OrderForm for which the current instance belongs.

Remarks

Gets the parent order form for which the current instance belongs. ParentOrderForm is set when the PromoCodeRecord gets added to an PromoCodeRecordCollection of an OrderForm. If the PromoCodeRecord is not associated with a OrderForm, the value is nullNothingnullptra null reference (Nothing in Visual Basic). This is encapsulated within the implementation of SetParent.

Permissions

See Also

Reference

PromoCodeRecord Class

PromoCodeRecord Members

Microsoft.CommerceServer.Runtime.Orders Namespace