Udostępnij za pośrednictwem


WinDataDrivenAdapter.FindWindowFromControlName Method

Finds the window that contains the control.

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 IntPtr

returnValue = Me.FindWindowFromControlName(controlName, throwExceptionIfNotFound)

Syntax

'Declaration
Protected Function FindWindowFromControlName ( _
    controlName As String, _
    throwExceptionIfNotFound As Boolean _
) As IntPtr
protected IntPtr FindWindowFromControlName (
    string controlName,
    bool throwExceptionIfNotFound
)
protected:
IntPtr FindWindowFromControlName (
    String^ controlName, 
    bool throwExceptionIfNotFound
)
protected IntPtr FindWindowFromControlName (
    String controlName, 
    boolean throwExceptionIfNotFound
)
protected function FindWindowFromControlName (
    controlName : String, 
    throwExceptionIfNotFound : boolean
) : IntPtr

Parameters

  • controlName
    Specifies the name of the control.
  • throwExceptionIfNotFound
    Contains a Boolean value that, when true, throws DataDrivenAdapterException if the window isn’t found.

Return Value

Type: IntPtr.

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

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

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