Share via


UIADataDrivenAdapter.FindUIAControl(String, Boolean) Method

Definition

Traverses through the UIObject tree and finds the control in the TreeBinding.

protected System.Windows.Automation.AutomationElement FindUIAControl (string controlName, bool throwExceptionIfNotFound = true);
member this.FindUIAControl : string * bool -> System.Windows.Automation.AutomationElement
Protected Function FindUIAControl (controlName As String, Optional throwExceptionIfNotFound As Boolean = true) As AutomationElement

Parameters

controlName
String

Specifies the name of the control.

throwExceptionIfNotFound
Boolean

Throws an exception if not found.

Returns

Applies to