Partager via


UIObject.GetUIObjectFromPartialUIObjectId Method

Returns a UI object that is contained in this UI object by using the provided partial 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 GetUIObjectFromPartialUIObjectId ( _
    partialUIObjectId As String _
) As UIObject
public UIObject GetUIObjectFromPartialUIObjectId(
    string partialUIObjectId
)
public:
UIObject^ GetUIObjectFromPartialUIObjectId(
    String^ partialUIObjectId
)
member GetUIObjectFromPartialUIObjectId : 
        partialUIObjectId:string -> UIObject
public function GetUIObjectFromPartialUIObjectId(
    partialUIObjectId : String
) : UIObject

Parameters

  • partialUIObjectId
    Type: String

    A partial UI object ID that has parts that are separated by dots.

Return Value

Type: Microsoft.VisualStudio.TestTools.UITest.Common.UIMap.UIObject
A 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