Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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)

public:
bool Contains(
	String^ objectId
)

Parameters

objectId
Type: System::String

A UI object ID.

Return Value

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

Show: