LoadTestContext.Add Method (KeyValuePair<String, Object>)
Adds a KeyValuePair item to the LoadTestContext.
Namespace: Microsoft.VisualStudio.TestTools.LoadTesting
Assembly: Microsoft.VisualStudio.QualityTools.LoadTestFramework (in Microsoft.VisualStudio.QualityTools.LoadTestFramework.dll)
Syntax
'Declaration
Public Sub Add ( _
item As KeyValuePair(Of String, Object) _
)
public void Add(
KeyValuePair<string, Object> item
)
public:
virtual void Add(
KeyValuePair<String^, Object^> item
) sealed
abstract Add :
item:KeyValuePair<string, Object> -> unit
override Add :
item:KeyValuePair<string, Object> -> unit
public final function Add(
item : KeyValuePair<String, Object>
)
Parameters
item
Type: KeyValuePair<String, Object>The KeyValuePair to add to the LoadTestContext.
Implements
ICollection.Add(UTP)
Exceptions
Exception | Condition |
---|---|
NotSupportedException | LoadTestContext is read-only. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.