UIObject.Contains Method

Indicates whether the UI object that is identified by the provided ID is contained among the descendents of this UI 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 Contains ( _
    objectId As String _
) As Boolean
public bool Contains(
    string objectId
)
public:
bool Contains(
    String^ objectId
)
member Contains : 
        objectId:string -> bool
public function Contains(
    objectId : String
) : boolean

Parameters

Return Value

Type: System.Boolean
true if the identified UI object is contained among the descendents; otherwise, false.

.NET Framework Security

See Also

Reference

UIObject Class

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

Descendants