WebTestContext.Remove Method (String)

Removes the element with the specified key from the WebTestContext.

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

public bool Remove(
	string key
)

Parameters

key
Type: String

The key to remove from the WebTestContext.

Return Value

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

Implements

IDictionary.Remove(UTP)

ExceptionCondition
ArgumentNullException

key is null.

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

Show: