Metodo WebTestContext.Remove (KeyValuePair<String, Object>)
Rimuove un oggetto KeyValuePair<TKey, TValue> da 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
- keyValuePair
Tipo: System.Collections.Generic.KeyValuePair<String, Object>
In KeyValuePair<TKey, TValue> oggetto da rimuovere dalla raccolta.
Valore restituito
Tipo: System.Boolean
true se l'elemento correttamente viene rimosso, in caso contrario, false.Anche questo restituisce false se la chiave non viene trovata.
Implementa
Note
Non viene effettuata alcuna modifica alla raccolta sottostante se la chiave da rimuovere non viene trovata.
Sicurezza di .NET Framework
- Attendibilità totale per il chiamante immediato. Impossibile utilizzare questo membro in codice parzialmente attendibile. Per ulteriori informazioni, vedere Utilizzo di librerie da codice parzialmente attendibile.