UIADataDrivenAdapter.FindUIAControl Method (String, Boolean)

 

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2013, Dynamics CRM 2015, Dynamics CRM 2016

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)

Syntax

protected AutomationElement FindUIAControl(
    string controlName,
    bool throwExceptionIfNotFound = true
)
Protected Function FindUIAControl (
    controlName As String,
    throwExceptionIfNotFound As Boolean
) As AutomationElement

Parameters

  • controlName
    Type: System.String

    Specifies the name of the control.

  • throwExceptionIfNotFound
    Type: System.Boolean

    Throws an exception if not found.

Return Value

Type: System.Windows.Automation.AutomationElement

Type: AutomationElement.

See Also

UIADataDrivenAdapter Class
Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter Namespace

Return to top

Unified Service Desk 2.0

© 2017 Microsoft. All rights reserved. Copyright