Share via


WebDataDrivenAdapter.FindControlHtmlElement Method (String, Boolean)

 

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

Finds the operable HTML elements.

This API is not CLS-compliant.

Namespace:   Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter
Assembly:  Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter (in Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter.dll)

Syntax

[CLSCompliantAttribute(false)]
protected IHTMLElement FindControlHtmlElement(
    string controlName,
    bool throwExceptionIfNotFound
)
<CLSCompliantAttribute(False)>
Protected Function FindControlHtmlElement (
    controlName As String,
    throwExceptionIfNotFound As Boolean
) As IHTMLElement

Parameters

  • controlName
    Type: System.String

    Specifies the control bindings used to search for the element.

  • throwExceptionIfNotFound
    Type: System.Boolean

    Throws an exception when the element can’t be found.

Return Value

Type: mshtml.IHTMLElement

Target HTMLElement if found; null otherwise.

Exceptions

Exception Condition
InvalidOperationException

Thrown when no match path element is found or when target control is not found on the UI and throwExceptionIfNotFound=true.

UnauthorizedAccessException

Some accesses to the underlying Internet Explorer document object can throw this exception.

See Also

WebDataDrivenAdapter Class
Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter Namespace

Return to top

Unified Service Desk 2.0

© 2017 Microsoft. All rights reserved. Copyright