HwndHost.OnCreateAutomationPeer HwndHost.OnCreateAutomationPeer HwndHost.OnCreateAutomationPeer HwndHost.OnCreateAutomationPeer Method

定義

會建立AutomationPeer針對HwndHostCreates an AutomationPeer for HwndHost .

protected:
 override System::Windows::Automation::Peers::AutomationPeer ^ OnCreateAutomationPeer();
protected override System.Windows.Automation.Peers.AutomationPeer OnCreateAutomationPeer ();
override this.OnCreateAutomationPeer : unit -> System.Windows.Automation.Peers.AutomationPeer
Protected Overrides Function OnCreateAutomationPeer () As AutomationPeer

傳回

因型別而異的 AutomationPeer 實作。The type-specific AutomationPeer implementation.

備註

此方法的實作會在呼叫特定的建構函式通常是AutomationPeer實作,並將它傳回為傳回值。The implementation of this method is typically to call the constructor of a specific AutomationPeer implementation, and return it as the return value. HwndHost實作OnCreateAutomationPeer運作原理,但它會傳回是內部類別的自動化同儕節點。The HwndHost implementation of OnCreateAutomationPeer does this, but the automation peer that it returns is an internal class.

適用於

另請參閱