Metoda UITechnologyManagerProxy.GetFocusedElement —
Pobiera się element, który jest elementem, który będzie odbierał zdarzenia klawiatury w tej instancji.
Przestrzeń nazw: Microsoft.VisualStudio.TestTools.UITesting
Zestaw: Microsoft.VisualStudio.TestTools.UITesting (w Microsoft.VisualStudio.TestTools.UITesting.dll)
Składnia
'Deklaracja
Public Overrides Function GetFocusedElement ( _
handle As IntPtr _
) As IUITechnologyElement
public override IUITechnologyElement GetFocusedElement(
IntPtr handle
)
public:
virtual IUITechnologyElement^ GetFocusedElement(
IntPtr handle
) override
abstract GetFocusedElement :
handle:IntPtr -> IUITechnologyElement
override GetFocusedElement :
handle:IntPtr -> IUITechnologyElement
public override function GetFocusedElement(
handle : IntPtr
) : IUITechnologyElement
Parametry
- handle
Typ: System.IntPtr
Uchwyt okna, który ma fokus.
Wartość zwracana
Typ: Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement
Element, który ma fokus lub null, jeśli nie istnieje żaden element, który ma fokus.
Implementuje
IUITechnologyManager.GetFocusedElement(IntPtr)
Zabezpieczenia programu .NET Framework
- Pełne zaufanie do bezpośredniego wywołującego. Tego elementu członkowskiego nie można używać w kodzie częściowo zaufanym. Aby uzyskać więcej informacji, zobacz Przy użyciu bibliotek z częściowo zaufanego kodu..