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

See Also

Reference

LoadTestUserContext Class

Add Overload

Microsoft.VisualStudio.TestTools.LoadTesting Namespace