WebTestContext.Remove (Método) (String)
Quita el elemento con la clave especificada de la interfaz 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 ( _
key As String _
) As Boolean
public bool Remove(
string key
)
public:
virtual bool Remove(
String^ key
) sealed
abstract Remove :
key:string -> bool
override Remove :
key:string -> bool
public final function Remove(
key : String
) : boolean
Parámetros
- key
Tipo: System.String
La clave para quitar de WebTestContext.
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 el valor de key.
Implementaciones
IDictionary<TKey, TValue>.Remove(TKey)
Excepciones
Excepción | Condición |
---|---|
ArgumentNullException | key es nullreferencia null (Nothing en Visual Basic). |
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)