AutomationPeer.GetHostRawElementProviderCore メソッド

定義

UI オートメーション ツリー内のどこに、Windows Presentation Foundation (WPF) 要素によってホストされている hwnd を配置するように 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 の子要素として配置されます。 通常は、この既定の動作をオーバーライドし、Windows Presentation Foundation (WPF) 論理ツリー内の場所にホストされている hwnd を並列に配置するようにUI オートメーションを設定します。

ホスティング シナリオを除き、 AutomationPeer 型がこのメソッドをオーバーライドすることを許可しないでください。

このメソッドをオーバーライドするだけでなく、AutomationPeerをすぐにホストする要素に関連付けられているhwnd型は、ホストされているAutomationPeerにWM_GETOBJECTに応答してIRawElementProviderSimpleにキャストされるhwndを返す必要があります。

IRawElementProviderSimpleへのポインターを取得するには、HostProviderFromHandleを呼び出します。

適用対象

こちらもご覧ください