AutomationPeer.GetHostRawElementProviderCore 메서드

정의

UI 자동화 UI 자동화 트리 hwnd 에서 WPF(Windows Presentation Foundation) 요소에 의해 호스팅되는 위치를 알려줍니다.

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

반환

HostedWindowWrapper

이 메서드는 개체를 호스트하는 컨트롤에 대해 UI 자동화 호스트 hwnd hwnd 된 개체를 반환합니다.

특성

설명

이 메서드는 개체를 호스트하는 컨트롤에 대해 UI 자동화 호스트 hwnd hwnd 된 개체를 반환합니다.

이 메서드를 재정의 AutomationPeer 해야 하는 즉시 호스트하는 hwnd 요소와 연결된 값입니다.

이 메서드를 재정의 HwndSource 하지 않으면 UI 자동화 전체 애플리케이션을 호스트하는 자식 요소로 배치 hwnd 합니다. 일반적으로 이 기본 동작을 재정의하고 UI 자동화 설정하여 호스트된 hwnd 병렬을 WPF(Windows Presentation Foundation) 논리 트리에 있는 위치에 배치하려고 합니다.

호스팅 시나리오를 제외하고 형식이 이 메서드를 재정의하는 것을 허용하지 AutomationPeer 않습니다.

이 메서드를 재정의 AutomationPeer 하는 것 외에도, 즉시 호스트되는 요소와 연결된 형식은 호스트 hwnd hwnd된 WM_GETOBJECT 대한 응답으로 캐스팅 IRawElementProviderSimple 되는 형식을 반환 AutomationPeer 해야 합니다.

에 대한 포인터를 얻으려면 .를 호출HostProviderFromHandle합니다IRawElementProviderSimple.

적용 대상

추가 정보