UITestControl.GetChildren Method

Returns a collection of all first-level children of the current UITestControl.

Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

Syntax

'Declaration
Public Function GetChildren As UITestControlCollection
public UITestControlCollection GetChildren()
public:
UITestControlCollection^ GetChildren()
member GetChildren : unit -> UITestControlCollection
public function GetChildren() : UITestControlCollection

Return Value

Type: Microsoft.VisualStudio.TestTools.UITesting.UITestControlCollection
A collection of all first-level children of the current UITestControl.

.NET Framework Security

See Also

Reference

UITestControl Class

Microsoft.VisualStudio.TestTools.UITesting Namespace