LoadTestContext.Item Property
Gets or sets a LoadTestContext 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
- key
Type: System.String
The key of the element to get or set.
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 LoadTestContext 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.