Metodo WebTestContext.Remove (KeyValuePair<String, Object>)

Rimuove una classe KeyValuePair<TKey, TValue> dalla classe WebTestContext.

Spazio dei nomi:  Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

Sintassi

'Dichiarazione
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

Parametri

Valore restituito

Tipo: System.Boolean
true se l'elemento viene rimosso; in caso contrario, false.Viene restituito false anche quando non viene trovata alcuna chiave.

Implementa

ICollection<T>.Remove(T)

Note

Non vengono effettuate modifiche all'insieme sottostante se la chiave da rimuovere non viene trovata.

Sicurezza di .NET Framework

Vedere anche

Riferimenti

WebTestContext Classe

Overload Remove

Spazio dei nomi Microsoft.VisualStudio.TestTools.WebTesting