WebTestContext.Contains (Método)
Determina si WebTestContext contiene el par clave-valor especificado.
Espacio de nombres: Microsoft.VisualStudio.TestTools.WebTesting
Ensamblado: Microsoft.VisualStudio.QualityTools.WebTestFramework (en Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)
Sintaxis
'Declaración
Public Function Contains ( _
keyValuePair As KeyValuePair(Of String, Object) _
) As Boolean
public bool Contains(
KeyValuePair<string, Object> keyValuePair
)
public:
virtual bool Contains(
KeyValuePair<String^, Object^> keyValuePair
) sealed
abstract Contains :
keyValuePair:KeyValuePair<string, Object> -> bool
override Contains :
keyValuePair:KeyValuePair<string, Object> -> bool
public final function Contains(
keyValuePair : KeyValuePair<String, Object>
) : boolean
Parámetros
- keyValuePair
Tipo: System.Collections.Generic.KeyValuePair<String, Object>
Objeto
Valor devuelto
Tipo: System.Boolean
true si WebTestContext contiene el objeto KeyValuePair<TKey, TValue> específico; de lo contrario, false.
Implementaciones
Comentarios
Esta es una buena prueba para determinar si KeyValuePair<TKey, TValue> ya se produce en la colección WebTestContext antes de usar el método Add.
Seguridad de .NET Framework
- Plena confianza para el llamador inmediato. Un código de confianza parcial no puede utilizar este miembro. Para obtener más información, vea Utilizar bibliotecas de código que no es de plena confianza.
Vea también
Referencia
Microsoft.VisualStudio.TestTools.WebTesting (Espacio de nombres)