Partilhar via


WebDataDrivenAdapter.FindControlHtmlElement Method

Finds the operable HTML elements.

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 IHTMLElement

returnValue = Me.FindControlHtmlElement(controlName, throwExceptionIfNotFound)

Syntax

'Declaration
<CLSCompliantAttribute(False)> _
Protected Function FindControlHtmlElement ( _
    controlName As String, _
    throwExceptionIfNotFound As Boolean _
) As IHTMLElement
[CLSCompliantAttribute(false)] 
protected IHTMLElement FindControlHtmlElement (
    string controlName,
    bool throwExceptionIfNotFound
)
[CLSCompliantAttribute(false)] 
protected:
IHTMLElement^ FindControlHtmlElement (
    String^ controlName, 
    bool throwExceptionIfNotFound
)
/** @attribute CLSCompliantAttribute(false) */ 
protected IHTMLElement FindControlHtmlElement (
    String controlName, 
    boolean throwExceptionIfNotFound
)
CLSCompliantAttribute(false) 
protected function FindControlHtmlElement (
    controlName : String, 
    throwExceptionIfNotFound : boolean
) : IHTMLElement

Parameters

  • controlName
    Specifies the control bindings used to search for the element.
  • throwExceptionIfNotFound
    Throws an exception when the element can’t be found.

Return Value

Target HTMLElement if found; null otherwise.

Exceptions

Exception type 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.

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

WebDataDrivenAdapter Class
WebDataDrivenAdapter Members
Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter Namespace

Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.