UITechnologyManagerProxy.GetPreviousSibling 方法
取得指定項目的上一個同層級在使用者介面階層架構。
命名空間: Microsoft.VisualStudio.TestTools.UITesting
組件: Microsoft.VisualStudio.TestTools.UITesting (在 Microsoft.VisualStudio.TestTools.UITesting.dll 中)
語法
'宣告
Public Overrides Function GetPreviousSibling ( _
element As IUITechnologyElement _
) As IUITechnologyElement
public override IUITechnologyElement GetPreviousSibling(
IUITechnologyElement element
)
public:
virtual IUITechnologyElement^ GetPreviousSibling(
IUITechnologyElement^ element
) override
abstract GetPreviousSibling :
element:IUITechnologyElement -> IUITechnologyElement
override GetPreviousSibling :
element:IUITechnologyElement -> IUITechnologyElement
public override function GetPreviousSibling(
element : IUITechnologyElement
) : IUITechnologyElement
參數
- element
型別:Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement
上一個同層級是必要的項目。
傳回值
型別:Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement
上一個同層級或 null,如果它不存在的話)。
實作
IUITechnologyManager.GetPreviousSibling(IUITechnologyElement)
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。