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
- element 
 Type: Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement- A UITechnologyElement object. 
Return Value
Type: Microsoft.VisualStudio.TestTools.UITest.Common.UIMap.UIObject
A UIObject.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.TestTools.UITest.Common.UIMap Namespace