Compartilhar via


Método UITestControlCollection.Contains

Determina se a UITestControlCollection contém um determinado UITestControl.

Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (em Microsoft.VisualStudio.TestTools.UITesting.dll)

Sintaxe

'Declaração
Public Function Contains ( _
    item As UITestControl _
) As Boolean
public bool Contains(
    UITestControl item
)
public:
virtual bool Contains(
    UITestControl^ item
) sealed
abstract Contains : 
        item:UITestControl -> bool 
override Contains : 
        item:UITestControl -> bool 
public final function Contains(
    item : UITestControl
) : boolean

Parâmetros

Valor de retorno

Tipo: System.Boolean
true Se a UITestControlCollection contém especificado UITestControl; Caso contrário, false.

Implementações

ICollection<T>.Contains(T)

Segurança do .NET Framework

Consulte também

Referência

UITestControlCollection Classe

Namespace Microsoft.VisualStudio.TestTools.UITesting