LoadTestUserContext.Item Property

Gets or sets a LoadTestUserContext element that has the specified key.

Namespace:  Microsoft.VisualStudio.TestTools.LoadTesting
Assembly:  Microsoft.VisualStudio.QualityTools.LoadTestFramework (in Microsoft.VisualStudio.QualityTools.LoadTestFramework.dll)

Syntax

'Declaration
Public Default Property Item ( _
    key As String _
) As Object
public Object this[
    string key
] { get; set; }
public:
virtual property Object^ default[String^ key] {
    Object^ get (String^ key) sealed;
    void set (String^ key, Object^ value) sealed;
}
abstract Item : Object with get, set
override Item : Object with get, set
JScript does not support indexed properties.

Parameters

Property Value

Type: System.Object
The element that has the specified key.

Implements

IDictionary<TKey, TValue>.Item[TKey]

Exceptions

Exception Condition
ArgumentNullException

key is nulla null reference (Nothing in Visual Basic).

KeyNotFoundException

The property is retrieved and key is not found.

NotSupportedException

The property is set and the LoadTestUserContext is read-only.

.NET Framework Security

See Also

Reference

LoadTestUserContext Class

Microsoft.VisualStudio.TestTools.LoadTesting Namespace