This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Returns the windows pointer for the element that currently has the focus.
Assembly: Microsoft.VisualStudio.TestTools.UITest.Extension (in Microsoft.VisualStudio.TestTools.UITest.Extension.dll)
Return ValueType: Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement
The element that has the focus, or null if no element has the focus.
- 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.