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: StringThe 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
- 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.