Freigeben über


SetParent Method

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

Called whenever the current order group is associated with a new order group.

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

Syntax

'Declaration
Public Overrides Sub SetParent ( _
    parent As Object _
)
'Usage
Dim instance As OrderGroup
Dim parent As Object

instance.SetParent(parent)
public override void SetParent(
    Object parent
)
public:
virtual void SetParent(
    Object^ parent
) override
public override function SetParent(
    parent : Object
)

Parameters

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

Updates parent and grandparent object references of a child class instance. SetParent allows the current instance to fix up any internal references to parents, grandparents, or other fields associated with the surrounding OrderGroup.

SetParent is typically called when performing an Add() operation on a collection.

Permissions

See Also

Reference

OrderGroup Class

OrderGroup Members

Microsoft.CommerceServer.Runtime.Orders Namespace