Compartir a través de


LoadTestContext.Item (Propiedad)

Obtiene o establece un elemento LoadTestContext que tiene la clave especificada.

Espacio de nombres:  Microsoft.VisualStudio.TestTools.LoadTesting
Ensamblado:  Microsoft.VisualStudio.QualityTools.LoadTestFramework (en Microsoft.VisualStudio.QualityTools.LoadTestFramework.dll)

Sintaxis

'Declaración
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 no admite propiedades indizadas.

Parámetros

  • key
    Tipo: System.String
    La clave del elemento que se obtiene o establece.

Valor de propiedad

Tipo: System.Object
El elemento que tiene la clave especificada.

Implementaciones

IDictionary<TKey, TValue>.Item

Excepciones

Excepción Condición
ArgumentNullException

key es nullreferencia null (Nothing en Visual Basic).

KeyNotFoundException

La propiedad se recupera, pero key no se encuentra.

NotSupportedException

La propiedad está establecida y LoadTestContext es de solo lectura.

Seguridad de .NET Framework

Vea también

Referencia

LoadTestContext Clase

Microsoft.VisualStudio.TestTools.LoadTesting (Espacio de nombres)