Dela via


AutomationPeer.GetChildrenCore Method

Definition

Provides the peer's behavior when a Microsoft UI Automation client calls GetChildren or an equivalent Microsoft UI Automation client API.

protected:
 virtual IVector<AutomationPeer ^> ^ GetChildrenCore() = GetChildrenCore;
IVector<AutomationPeer> GetChildrenCore();
protected virtual IList<AutomationPeer> GetChildrenCore();
function getChildrenCore()
Protected Overridable Function GetChildrenCore () As IList(Of AutomationPeer)

Returns

The collection of AutomationPeer objects for child elements.

Remarks

The base implementation returns null. Peers that represent controls with item collections may override this result. Test the behavior of the peer you are using or overriding and override GetChildrenCore if you want to change that behavior.

Applies to

See also