LoadTestUserContext.Add Method (KeyValuePair<String, Object>)
Adds a KeyValuePair item to the LoadTestUserContext.
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 LoadTestUserContext.
Implements
ICollection.Add(UTP)
Exceptions
Exception | Condition |
---|---|
NotSupportedException | LoadTestUserContext 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.