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

Base class for the query engines used. These are responsible for taking the conditions specified in a query and finding an automation element using them.
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
DefaultTimeout System.TimeSpan

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

Метод Описание
GetAllResults ( Query query ) : IEnumerable

Gets all the automation elements found using the condition specified in the specified query.

GetAllResults ( Query query, System.TimeSpan timeout ) : IEnumerable

Gets all the automation elements found using the condition specified in the specified query.

GetFirstResult ( Query query ) : AutomationElement

Gets the first automation element found using the conditions specified in the specified query.

GetFirstResult ( Query query, System.TimeSpan timeout ) : AutomationElement

Gets the first automation element found using the conditions specified in the specified query.

Защищенные методы

Метод Описание
ExecuteGetResult ( GetResultCallback callback, System.TimeSpan timeout ) : object

Invokes the specified callback repeatedly until either the specified timeout expires or an automation element is returned.

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

ExecuteGetResult() защищенный Метод

Invokes the specified callback repeatedly until either the specified timeout expires or an automation element is returned.
protected ExecuteGetResult ( GetResultCallback callback, System.TimeSpan timeout ) : object
callback GetResultCallback The get results callback method.
timeout System.TimeSpan The maximum amount of time to wait for the callback to return an automation element.
Результат object

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

Gets all the automation elements found using the condition specified in the specified query.
public GetAllResults ( Query query ) : IEnumerable
query Query The query.
Результат IEnumerable

GetAllResults() публичный абстрактный Метод

Gets all the automation elements found using the condition specified in the specified query.
public abstract GetAllResults ( Query query, System.TimeSpan timeout ) : IEnumerable
query Query The query.
timeout System.TimeSpan The maximum amount of time to wait for at least one element to become available.
Результат IEnumerable

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

Gets the first automation element found using the conditions specified in the specified query.
public GetFirstResult ( Query query ) : AutomationElement
query Query The query.
Результат System.Windows.Automation.AutomationElement

GetFirstResult() публичный абстрактный Метод

Gets the first automation element found using the conditions specified in the specified query.
public abstract GetFirstResult ( Query query, System.TimeSpan timeout ) : AutomationElement
query Query The query.
timeout System.TimeSpan The maximum amount of time to wait for the required element to become available.
Результат System.Windows.Automation.AutomationElement

Описание свойств

DefaultTimeout защищенное свойство

The default amount of time to wait for an element to become available.
protected TimeSpan,System DefaultTimeout
Результат System.TimeSpan