Delen via


UITechnologyManagerProxy.GetParent Method

Gets the parent of the given element in the user interface hierarchy.

Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

Syntax

'Declaration
Public Overrides Function GetParent ( _
    element As IUITechnologyElement _
) As IUITechnologyElement
public override IUITechnologyElement GetParent(
    IUITechnologyElement element
)
public:
virtual IUITechnologyElement^ GetParent(
    IUITechnologyElement^ element
) override
abstract GetParent : 
        element:IUITechnologyElement -> IUITechnologyElement  
override GetParent : 
        element:IUITechnologyElement -> IUITechnologyElement
public override function GetParent(
    element : IUITechnologyElement
) : IUITechnologyElement

Parameters

Return Value

Type: Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement
The parent element or null if the element passed is the root element in this technology.

Implements

IUITechnologyManager.GetParent(IUITechnologyElement)

.NET Framework Security

See Also

Reference

UITechnologyManagerProxy Class

Microsoft.VisualStudio.TestTools.UITesting Namespace