AutomationPeer.GetHostRawElementProviderCore 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
UI 자동화 트리 hwnd 에서 WPF(Windows Presentation Foundation) 요소에서 호스팅되는 위치를 UI 자동화에 지시합니다.
protected:
virtual System::Windows::Automation::Peers::HostedWindowWrapper ^ GetHostRawElementProviderCore();
[System.Security.SecurityCritical]
[System.Security.SecurityTreatAsSafe]
protected virtual System.Windows.Automation.Peers.HostedWindowWrapper GetHostRawElementProviderCore();
protected virtual System.Windows.Automation.Peers.HostedWindowWrapper GetHostRawElementProviderCore();
[<System.Security.SecurityCritical>]
[<System.Security.SecurityTreatAsSafe>]
abstract member GetHostRawElementProviderCore : unit -> System.Windows.Automation.Peers.HostedWindowWrapper
override this.GetHostRawElementProviderCore : unit -> System.Windows.Automation.Peers.HostedWindowWrapper
abstract member GetHostRawElementProviderCore : unit -> System.Windows.Automation.Peers.HostedWindowWrapper
override this.GetHostRawElementProviderCore : unit -> System.Windows.Automation.Peers.HostedWindowWrapper
Protected Overridable Function GetHostRawElementProviderCore () As HostedWindowWrapper
반품
이 메서드는 호스트된 hwnd 반환하여 hwnd 개체를 호스트하는 컨트롤에 대해 UI 자동화.
- 특성
설명
이 메서드는 호스트된 hwnd 반환하여 hwnd 개체를 호스트하는 컨트롤에 대해 UI 자동화.
AutomationPeer 이 메서드를 재정의해야 하는 즉시 호스트하는 hwnd 요소와 연결된 요소입니다.
이 메서드를 재정의하지 않으면 UI 자동화 hwnd 전체 애플리케이션을 호스트하는 HwndSource 자식 요소로 배치합니다. 일반적으로 이 기본 동작을 재정의하고 호스트된 hwnd Windows Presentation Foundation(WPF) 논리 트리에 있는 위치와 병렬로 배치하도록 UI 자동화 설정합니다.
호스팅 시나리오를 제외하고 형식이 이 메서드를 재정의하는 것을 허용하지 AutomationPeer 않습니다.
이 메서드를 재정의 AutomationPeer 하는 것 외에도, 즉시 호스트 hwnd 하는 요소와 연결된 형식은 호스트AutomationPeer에 오는 WM_GETOBJECT 대한 응답으로 캐스팅 IRawElementProviderSimple 되는 형식을 반환 hwnd 해야 합니다.
포인터를 얻으려면 .를 호출합니다IRawElementProviderSimpleHostProviderFromHandle.