UIMap.GetUIObjectNameForElement Method

Returns the name of the UI object that corresponds to the provided UI element.

Namespace:  Microsoft.VisualStudio.TestTools.UITest.Common.UIMap
Assembly:  Microsoft.VisualStudio.TestTools.UITest.Common (in Microsoft.VisualStudio.TestTools.UITest.Common.dll)

Syntax

'Declaration
Public Function GetUIObjectNameForElement ( _
    element As UITechnologyElement _
) As String
public string GetUIObjectNameForElement(
    UITechnologyElement element
)
public:
String^ GetUIObjectNameForElement(
    UITechnologyElement^ element
)
member GetUIObjectNameForElement : 
        element:UITechnologyElement -> string
public function GetUIObjectNameForElement(
    element : UITechnologyElement
) : String

Parameters

Return Value

Type: String
The name of the corresponding UI object.

.NET Framework Security

See Also

Reference

UIMap Class

Microsoft.VisualStudio.TestTools.UITest.Common.UIMap Namespace

UIObject

UITechnologyElement