Proprietà LoadTestUserContext.Item
Ottiene o imposta un elemento LoadTestUserContext che dispone della chiave specificata.
Spazio dei nomi: Microsoft.VisualStudio.TestTools.LoadTesting
Assembly: Microsoft.VisualStudio.QualityTools.LoadTestFramework (in Microsoft.VisualStudio.QualityTools.LoadTestFramework.dll)
'Dichiarazione
Public Default Property Item ( _
key As String _
) As Object
Get
Set
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 non supporta le proprietà indicizzate.
- key
Tipo: System.String
Chiave dell'elemento da ottenere o impostare.
Tipo: System.Object
Elemento che dispone della chiave specificata.
IDictionary<TKey, TValue>.Item[TKey]
Eccezione | Condizione |
---|---|
ArgumentNullException | key è nullriferimento null (Nothing in Visual Basic). |
KeyNotFoundException | La proprietà viene recuperata e key non è stato trovato. |
NotSupportedException | La proprietà è impostata e l'interfaccia LoadTestUserContext è in sola lettura. |
- Attendibilità totale per il chiamante immediato. Impossibile utilizzare questo membro in codice parzialmente attendibile. Per ulteriori informazioni, vedere Utilizzo di librerie da codice parzialmente attendibile.
Spazio dei nomi Microsoft.VisualStudio.TestTools.LoadTesting