Expand Minimize

AutomationPeer.GetControlledPeers method

Applies to Windows and Windows Phone

Provides the peer's behavior when a Microsoft UI Automation client calls GetControlledPeers or an equivalent UI Automation client API such as getting a property value as identified by UIA_ControllerForPropertyId.

Syntax


public IReadOnlyList<AutomationPeer> GetControlledPeers()

Parameters

This method has no parameters.

Return value

Type: IVectorView<AutomationPeer> [C++] | System.Collections.Generic.IReadOnlyList<AutomationPeer> [.NET]

A list of the controlled peers for the current automation peer.

Remarks

Examining controlled peers is an advanced scenario that most peer implementations won't need to use.

The naming of the framework implementation and the UI Automation property that clients can use to access this info are slightly different. UI Automation clients should use the identifier UIA_ControllerForPropertyId to request the value of this property when using the UI Automation client interfaces such as IUIAutomation.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Automation.Peers
Windows::UI::Xaml::Automation::Peers [C++]

Metadata

Windows.winmd

See also

AutomationPeer

 

 

Show:
© 2014 Microsoft