Forum Discussion

mazhar555's avatar
mazhar555
Contributor
15 years ago

How to get parent object

Hi,



Like we can find a child object from page, how can we find a parent object from child, e.g. webapplication have object at the lowest level so what if from a lowest level object i want to call its parent object.



Regards,

  • Hi Muhammad,





    You can use the 'Parent' property:

    var parentObj = obj.Parent;

    Log.Message(parentObj.Name);