共用方式為


SearchControl.OnCreateAutomationPeer Method

Is invoked whenever application code or internal processes create an automation peer.

Namespace:  Microsoft.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Syntax

'宣告
Protected Overrides Function OnCreateAutomationPeer As AutomationPeer
protected override AutomationPeer OnCreateAutomationPeer()

Return Value

Type: System.Windows.Automation.Peers.AutomationPeer
Returns the automation peer.

.NET Framework Security

See Also

Reference

SearchControl Class

Microsoft.VisualStudio.PlatformUI Namespace