Edit

Bagikan melalui


HwndHost.OnCreateAutomationPeer Method

Definition

Creates 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

Returns

The type-specific AutomationPeer implementation.

Remarks

The implementation of this method is typically to call the constructor of a specific AutomationPeer implementation, and return it as the return value. The HwndHost implementation of OnCreateAutomationPeer does this, but the automation peer that it returns is an internal class.

Applies to

See also