SetParent Method
Called whenever the current instance is associated with a different 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 OrderForm
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
- parent
Type: System..::.Object
The immediate parent of the current instance.
Remarks
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.