UITestControl.SetFocus Method
Sets the keyboard focus to the UITestControl.
Namespace: Microsoft.VisualStudio.TestTools.UITesting
Assembly: Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)
Syntax
'Declaration
Public Overridable Sub SetFocus
public virtual void SetFocus()
public:
virtual void SetFocus()
abstract SetFocus : unit -> unit
override SetFocus : unit -> unit
public function SetFocus()
.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.