WebTestContext.Remove (Método) (KeyValuePair<String, Object>)
Quita un objeto KeyValuePair<TKey, TValue> de la colección WebTestContext.
Espacio de nombres: Microsoft.VisualStudio.TestTools.WebTesting
Ensamblado: Microsoft.VisualStudio.QualityTools.WebTestFramework (en Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)
Sintaxis
'Declaración
Public Function Remove ( _
keyValuePair As KeyValuePair(Of String, Object) _
) As Boolean
public bool Remove(
KeyValuePair<string, Object> keyValuePair
)
public:
virtual bool Remove(
KeyValuePair<String^, Object^> keyValuePair
) sealed
abstract Remove :
keyValuePair:KeyValuePair<string, Object> -> bool
override Remove :
keyValuePair:KeyValuePair<string, Object> -> bool
public final function Remove(
keyValuePair : KeyValuePair<String, Object>
) : boolean
Parámetros
- keyValuePair
Tipo: System.Collections.Generic.KeyValuePair<String, Object>
Un objeto KeyValuePair<TKey, TValue> para quitar de la colección.
Valor devuelto
Tipo: System.Boolean
Es true si el elemento se quita correctamente; de lo contrario, es false.También devuelve false si no se encuentra la clave.
Implementaciones
Comentarios
Si no se encuentra la clave para quitar, no se realiza ningún cambio en la colección subyacente.
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)