Share via


UIObject.GetUIObjectFromId Method

Returns a contained UI object that is based on the provided ID.

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

Syntax

'Declaration
Public Function GetUIObjectFromId ( _
    uiObjectId As String _
) As UIObject
public UIObject GetUIObjectFromId(
    string uiObjectId
)
public:
UIObject^ GetUIObjectFromId(
    String^ uiObjectId
)
member GetUIObjectFromId : 
        uiObjectId:string -> UIObject
public function GetUIObjectFromId(
    uiObjectId : String
) : UIObject

Parameters

  • uiObjectId
    Type: String

    A UI object ID.

Return Value

Type: Microsoft.VisualStudio.TestTools.UITest.Common.UIMap.UIObject
A contained UI object, or nulla null reference (Nothing in Visual Basic) if not found.

.NET Framework Security

See Also

Reference

UIObject Class

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