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
element
Type: Microsoft.VisualStudio.TestTools.UITest.Extension.UITechnologyElementA UITechnologyElement object.
Return Value
Type: String
The name of the corresponding UI object.
.NET Framework Security
- 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.
See Also
Reference
Microsoft.VisualStudio.TestTools.UITest.Common.UIMap Namespace