Share via


UIMap.AddUIObject Method

Adds the provided UI element to this map.

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

Syntax

'Declaration
Public Function AddUIObject ( _
    element As IUITechnologyElement _
) As UIObject
public UIObject AddUIObject(
    IUITechnologyElement element
)
public:
UIObject^ AddUIObject(
    IUITechnologyElement^ element
)
member AddUIObject : 
        element:IUITechnologyElement -> UIObject 
public function AddUIObject(
    element : IUITechnologyElement
) : UIObject

Parameters

Return Value

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

.NET Framework Security

See Also

Reference

UIMap Class

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

UITechnologyElement

UIObject