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

UIObject.Remove Method (String)

Removes the specified 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(
	string objectId


Type: System.String
A UI object ID.

Return Value

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