UIADataDrivenAdapter.FindUIAControl Method
Traverses through the UIObject tree and finds the control in the TreeBinding.
Namespace: Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter
Assembly: Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter (in Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter.dll)
Usage
'Usage
Dim controlName As String
Dim throwExceptionIfNotFound As Boolean
Dim returnValue As AutomationElement
returnValue = Me.FindUIAControl(controlName, throwExceptionIfNotFound)
Syntax
'Declaration
Protected Function FindUIAControl ( _
controlName As String, _
<OptionalAttribute> Optional throwExceptionIfNotFound As Boolean = True _
) As AutomationElement
protected AutomationElement FindUIAControl (
string controlName,
[OptionalAttribute] bool throwExceptionIfNotFound
)
protected:
AutomationElement^ FindUIAControl (
String^ controlName,
[OptionalAttribute] bool throwExceptionIfNotFound
)
protected AutomationElement FindUIAControl (
String controlName,
/** @attribute OptionalAttribute() */ boolean throwExceptionIfNotFound
)
protected function FindUIAControl (
controlName : String,
throwExceptionIfNotFound : boolean
) : AutomationElement
Parameters
- controlName
Specifies the name of the control.
- throwExceptionIfNotFound
Throws an exception if not found.
Return Value
Type: AutomationElement.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
See Also
Reference
UIADataDrivenAdapter Class
UIADataDrivenAdapter Members
Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter Namespace
Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.