Share via


ISelectionAdapter.CreateAutomationPeer Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Returns an automation peer for the selection adapter, for use by the Silverlight automation infrastructure.

Namespace:  System.Windows.Controls
Assembly:  System.Windows.Controls.Input (in System.Windows.Controls.Input.dll)

Syntax

'Declaration
Function CreateAutomationPeer As AutomationPeer
AutomationPeer CreateAutomationPeer()

Return Value

Type: System.Windows.Automation.Peers.AutomationPeer
An automation peer for the selection adapter, if one is available; otherwise, nulla null reference (Nothing in Visual Basic).

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.