Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
virtual bool Remove(
	String^ key
) sealed

Parameters

key
Type: System::String^

The key to remove from the WebTestContext.

Return Value

Type: System::Boolean

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

Exception Condition
ArgumentNullException

key is null.

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

Return to top
Show: