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.
We recommend using Visual Studio 2017

UIMap.Contains Method

Indicates whether the provided UI object is in the map.

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

public bool Contains(
	UIObject uiObject

Return Value

Type: System.Boolean
true if the object is in the map; otherwise, false.