Finds this application window in the user interface.
Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)
Syntax
'Declaration
Public Overrides Sub Find
public override void Find()
public:
virtual void Find() override
abstract Find : unit -> unit  
override Find : unit -> unit
public override function Find()
Exceptions
| Exception | Condition | 
|---|---|
| UITestControlNotAvailableException | If the control is not available or valid | 
| UITestControlNotFoundException | If the control is not found with the given search properties | 
| UITestControlNotAvailableException | The target application window is closed, not valid, or the process has ended. | 
| UITestControlNotFoundException | The target application window was not found. | 
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.