Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

UIObject::Add Method

Adds the given UI object to the descendents of this UI object, if the given UI object does not already exist.

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

public:
UIObject^ Add(
	UIObject^ uiObject
)

Parameters

uiObject
Type: Microsoft.VisualStudio.TestTools.UITest.Common.UIMap::UIObject

The UI object to add.

Return Value

Type: Microsoft.VisualStudio.TestTools.UITest.Common.UIMap::UIObject
The added or existing object.

Show: