AppQuery.Parent Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Parent(String) |
Changes the query to return parent elements of the currently matched ones. |
Parent(Int32) |
Changes the query to return the n'th parent element of the currently matched ones. |
Parent(String)
Changes the query to return parent elements of the currently matched ones.
public Xamarin.UITest.Queries.AppQuery Parent (string className = null);
member this.Parent : string -> Xamarin.UITest.Queries.AppQuery
Public Function Parent (Optional className As String = null) As AppQuery
Parameters
- className
- String
Optional class name of elements to match.
Returns
Applies to
Parent(Int32)
Changes the query to return the n'th parent element of the currently matched ones.
public Xamarin.UITest.Queries.AppQuery Parent (int index);
member this.Parent : int -> Xamarin.UITest.Queries.AppQuery
Public Function Parent (index As Integer) As AppQuery
Parameters
- index
- Int32
The zero-based index of the parent to return.