Export (0) Print
Expand All

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 void Add(
	string key,
	Object value
)

Parameters

key
Type: System.String
The key to an object.
value
Type: System.Object
A value that corresponds to the key.

Implements

IDictionary<TKey, TValue>.Add(TKey, TValue)

ExceptionCondition
ArgumentNullException

key is null.

ArgumentException

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

Community Additions

ADD
Show:
© 2015 Microsoft