返回 UI 层次结构中给定元素的上一个同级元素。
命名空间:  Microsoft.VisualStudio.TestTools.UITest.Extension
程序集:  Microsoft.VisualStudio.TestTools.UITest.Extension(在 Microsoft.VisualStudio.TestTools.UITest.Extension.dll 中)
语法
声明
Public MustOverride Function GetPreviousSibling ( _
    element As IUITechnologyElement _
) As IUITechnologyElement
public abstract IUITechnologyElement GetPreviousSibling(
    IUITechnologyElement element
)
public:
virtual IUITechnologyElement^ GetPreviousSibling(
    IUITechnologyElement^ element
) abstract
abstract GetPreviousSibling : 
        element:IUITechnologyElement -> IUITechnologyElement 
public abstract function GetPreviousSibling(
    element : IUITechnologyElement
) : IUITechnologyElement
参数
- element
 类型:Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement
 一个 IUITechnologyElement。
返回值
类型:Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement
上一个同级元素。
实现
IUITechnologyManager.GetPreviousSibling(IUITechnologyElement)
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。