C# Класс Automation.UI.Tree.Query

Represents a query that is used to walk the UI automation tree.
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
Query System

Открытые методы

Метод Описание
AllResults ( ) : UIComponents

Gets all the results of executing this query.

FirstResult ( ) : UIComponent

Get the first result of executing this query. If no elements were found, throws an exception.

FirstResult ( System.TimeSpan timeout ) : UIComponent

Get the first result of executing this query. If no elements were found, throws an exception.

ToString ( ) : string

Gets a string that represents this query's condition and scope.

Приватные методы

Метод Описание
Query ( AutomationElement root ) : System

New query that will search relative to the specified element.

Описание методов

AllResults() публичный Метод

Gets all the results of executing this query.
public AllResults ( ) : UIComponents
Результат UIComponents

FirstResult() публичный Метод

Get the first result of executing this query. If no elements were found, throws an exception.
public FirstResult ( ) : UIComponent
Результат UIComponent

FirstResult() публичный Метод

Get the first result of executing this query. If no elements were found, throws an exception.
public FirstResult ( System.TimeSpan timeout ) : UIComponent
timeout System.TimeSpan The maximum amount of time to wait for the requested element to become available.
Результат UIComponent

ToString() публичный Метод

Gets a string that represents this query's condition and scope.
public ToString ( ) : string
Результат string