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
objectId
Type: StringA UI object ID.
Return Value
Type: Boolean
true if the identified UI object is contained among the descendents; otherwise, false.
.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