Udostępnij za pośrednictwem


Metoda WebTestContext.Remove — (KeyValuePair<String, Object>)

Removes a KeyValuePair from the WebTestContext.

Przestrzeń nazw:  Microsoft.VisualStudio.TestTools.WebTesting
Zestaw:  Microsoft.VisualStudio.QualityTools.WebTestFramework (w Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

Składnia

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

Parametry

  • keyValuePair
    Typ: KeyValuePair<String, Object>

    A KeyValuePair obiekt, aby usunąć z kolekcji.

Wartość zwracana

Typ: Boolean
true Jeśli element jest usuwany z powodzeniem; w przeciwnym razie false.To również zwraca false Jeśli klawisz nie zostanie znaleziony.

Implementuje

ICollection.Remove(UTP)

Uwagi

Jeśli nie znaleziono klucza, aby usunąć z kolekcji podstawowej są wprowadzane żadne zmiany.

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

WebTestContext Klasa

Przeciążenie Remove

Przestrzeń nazw Microsoft.VisualStudio.TestTools.WebTesting