We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

UIObject.Remove Method (UIObject)

Removes the provided UI object from the descendent objects in this UI object.

Namespace:  Microsoft.VisualStudio.TestTools.UITest.Common.UIMap
Assembly:  Microsoft.VisualStudio.TestTools.UITest.Common (in Microsoft.VisualStudio.TestTools.UITest.Common.dll)

public bool Remove(
	UIObject uiObject

Return Value

Type: System.Boolean
true if the specified object was removed; otherwise, false.