Share via


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

Removes a KeyValuePair<TKey, TValue> from the WebTestContext.

Namespace:  Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

Syntax

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

Parameters

Return Value

Type: System.Boolean
true if the element is successfully removed; otherwise, false. This also returns false if the key is not found.

Implements

ICollection<T>.Remove(T)

Remarks

No changes are made to the underlying collection if the key to remove is not found.

.NET Framework Security

See Also

Reference

WebTestContext Class

Remove Overload

Microsoft.VisualStudio.TestTools.WebTesting Namespace