Share via


SetParent Method

Updates parent and grandparent object references of a child class instance.

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 Shipment
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

Remarks

Called whenever this object is associated with an order group. 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 typically gets called when performing an Add() operation on a collection.

Permissions

See Also

Reference

Shipment Class

Shipment Members

Microsoft.CommerceServer.Runtime.Orders Namespace