Share via


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

Implements

ICollection.Add(UTP)

Exceptions

Exception Condition
NotSupportedException

LoadTestContext is read-only.

.NET Framework Security

See Also

Reference

LoadTestContext Class

Add Overload

Microsoft.VisualStudio.TestTools.LoadTesting Namespace