Share via


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)

Syntax

'Declaration
Public Function Add ( _
    uiObject As UIObject _
) As UIObject
public UIObject Add(
    UIObject uiObject
)
public:
UIObject^ Add(
    UIObject^ uiObject
)
member Add : 
        uiObject:UIObject -> UIObject
public function Add(
    uiObject : UIObject
) : UIObject

Parameters

Return Value

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

.NET Framework Security

See Also

Reference

UIObject Class

Microsoft.VisualStudio.TestTools.UITest.Common.UIMap Namespace

Descendants