返回与所提供 UI 元素对应的 UI 对象的名称。
命名空间:  Microsoft.VisualStudio.TestTools.UITest.Common.UIMap
程序集:  Microsoft.VisualStudio.TestTools.UITest.Common(在 Microsoft.VisualStudio.TestTools.UITest.Common.dll 中)
语法
声明
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
参数
- element
 类型:Microsoft.VisualStudio.TestTools.UITest.Extension.UITechnologyElement
 一个 UITechnologyElement 对象。
返回值
类型:System.String
对应 UI 对象的名称。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。