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

Removes a KeyValuePair 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

  • keyValuePair
    Type: KeyValuePair<String, Object>

    A KeyValuePair object to remove from the collection.

Return Value

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

Implements

ICollection.Remove(UTP)

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