Share via


UITestControl.TryFind Method

Tries to find the control on the user interface.

Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

Syntax

'Declaration
Public Function TryFind As Boolean
public bool TryFind()
public:
bool TryFind()
member TryFind : unit -> bool
public function TryFind() : boolean

Return Value

Type: Boolean
True if the find succeeds.

.NET Framework Security

See Also

Reference

UITestControl Class

Microsoft.VisualStudio.TestTools.UITesting Namespace