このクエリ要素の親である UI 要素を取得または設定します。
名前空間: Microsoft.VisualStudio.TestTools.UITest.Extension
アセンブリ: Microsoft.VisualStudio.TestTools.UITest.Extension (Microsoft.VisualStudio.TestTools.UITest.Extension.dll 内)
構文
'宣言
Public Property Ancestor As IUITechnologyElement
Get
Set
public IUITechnologyElement Ancestor { get; set; }
public:
virtual property IUITechnologyElement^ Ancestor {
IUITechnologyElement^ get () sealed;
void set (IUITechnologyElement^ value) sealed;
}
abstract Ancestor : IUITechnologyElement with get, set
override Ancestor : IUITechnologyElement with get, set
final function get Ancestor () : IUITechnologyElement
final function set Ancestor (value : IUITechnologyElement)
プロパティ値
型: Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement
先祖の要素。
実装
.NET Framework セキュリティ
- 直前の呼び出し元に対する完全な信頼。 このメンバーは、部分的に信頼されているコードから使用することはできません。 詳細については、「部分信頼コードからのライブラリの使用」を参照してください。