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::Add Method (String^, Object^)

 

Adds an element with the provided key and value to the WebTestContext.

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

public:
virtual void Add(
	String^ key,
	Object^ value
) sealed

Parameters

key
Type: System::String^

The key to an object.

value
Type: System::Object^

A value that corresponds to the key.

Exception Condition
ArgumentNullException

key is null.

ArgumentException

An element with the same key already occurs in the collection.

Return to top
Show: