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: System.StringA 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
- 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