다음을 통해 공유


UITechnologyManagerProxy.GetFocusedElement 메서드

이 인스턴스에 키보드 이벤트를 수신 하는 요소를 가진된 요소를 가져옵니다.

네임스페이스:  Microsoft.VisualStudio.TestTools.UITesting
어셈블리:  Microsoft.VisualStudio.TestTools.UITesting(Microsoft.VisualStudio.TestTools.UITesting.dll)

구문

‘선언
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

매개 변수

  • handle
    형식: IntPtr

    포커스가 있는 창의 핸들입니다.

반환 값

형식: Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement
포커스를 가진 요소가 없는 경우 포커스 또는 null 있는 요소입니다.

구현

IUITechnologyManager.GetFocusedElement(IntPtr)

.NET Framework 보안

참고 항목

참조

UITechnologyManagerProxy 클래스

Microsoft.VisualStudio.TestTools.UITesting 네임스페이스