Partager via


LoadTestUserContext.Item, propriété

Obtient ou définit un LoadTestUserContextélément qui contient la clé spécifiée.

Espace de noms :  Microsoft.VisualStudio.TestTools.LoadTesting
Assembly :  Microsoft.VisualStudio.QualityTools.LoadTestFramework (dans Microsoft.VisualStudio.QualityTools.LoadTestFramework.dll)

Syntaxe

'Déclaration
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 ne prend pas en charge les propriétés indexées.

Paramètres

  • key
    Type : System.String
    Clé de l'élément à obtenir ou définir.

Valeur de propriété

Type : System.Object
Élément qui contient la clé spécifiée.

Implémentations

IDictionary<TKey, TValue>.Item[TKey]

Exceptions

Exception Condition
ArgumentNullException

key est nullune référence null (Nothing en Visual Basic).

KeyNotFoundException

La propriété est récupérée et key est introuvable.

NotSupportedException

La propriété est définie et LoadTestUserContext est en lecture seule.

Sécurité .NET Framework

Voir aussi

Référence

LoadTestUserContext Classe

Microsoft.VisualStudio.TestTools.LoadTesting, espace de noms