AutomationPeer.GetControlledPeers Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides the peer's behavior when a Microsoft UI Automation client calls GetControlledPeers or an equivalent Microsoft UI Automation client API such as getting a property value as identified by UIA_ControllerForPropertyId.
public:
virtual IVectorView<AutomationPeer ^> ^ GetControlledPeers() = GetControlledPeers;
IVectorView<AutomationPeer> GetControlledPeers();
public IReadOnlyList<AutomationPeer> GetControlledPeers();
function getControlledPeers()
Public Function GetControlledPeers () As IReadOnlyList(Of AutomationPeer)
Returns
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 Microsoft UI Automation property that clients can use to access this info are slightly different. Microsoft UI Automation clients should use the identifier UIA_ControllerForPropertyId to request the value of this property when using the Microsoft UI Automation client interfaces such as IUIAutomation.