AutomationPeer.GetHostRawElementProviderCore メソッド

定義

Windows Presentation Foundation (WPF) 要素によってホストされている を配置hwndするUI オートメーション ツリー内の場所を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

戻り値

このメソッドは、オブジェクトをホストするコントロールのUI オートメーションにホストhwndされている hwnd を返します。

属性

注釈

このメソッドは、オブジェクトをホストするコントロールのUI オートメーションにホストhwndされている hwnd を返します。

AutomationPeerをすぐにホストする要素に関連付けられている は、このメソッドをhwndオーバーライドする必要があります。

このメソッドがオーバーライドされない場合、UI オートメーションは アプリケーション全体をホストする のHwndSource子要素として を配置hwndします。 通常は、この既定の動作をオーバーライドし、Windows Presentation Foundation (WPF) 論理ツリー内にある場所にホストされているhwnd並列を配置するUI オートメーションを設定します。

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

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

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

適用対象

こちらもご覧ください