Compartir a través de


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

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

Vea también

Referencia

WebTestContext Clase

Remove (Sobrecarga)

Microsoft.VisualStudio.TestTools.WebTesting (Espacio de nombres)