UIMap.MergeUIObject Method

Merges a UI object from the provided UI map into this map by using the provided name for the object.

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

Syntax

'Declaration
Public Function MergeUIObject ( _
    uiMap As UIMap, _
    objectName As String _
) As UIObject
public UIObject MergeUIObject(
    UIMap uiMap,
    string objectName
)
public:
UIObject^ MergeUIObject(
    UIMap^ uiMap, 
    String^ objectName
)
member MergeUIObject : 
        uiMap:UIMap * 
        objectName:string -> UIObject
public function MergeUIObject(
    uiMap : UIMap, 
    objectName : String
) : UIObject

Parameters

  • objectName
    Type: String

    The name of the object to add.

Return Value

Type: Microsoft.VisualStudio.TestTools.UITest.Common.UIMap.UIObject
The UI object in this map.

.NET Framework Security

See Also

Reference

UIMap Class

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

UIMap

UIObject