다음을 통해 공유


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 : 
        key:string -> Object with get, set 
override Item : 
        key:string -> Object with get, set
JScript does not support indexed properties.

Parameters

  • key
    Type: String

    The key of the element to get or set.

Property Value

Type: Object
The element that has the specified key.

Implements

IDictionary.Item

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