Aracılığıyla paylaş


LoadTestUserContext.Item Özellik

Alır veya ayarlar bir LoadTestUserContext öğesi olan belirtilen anahtar.

Ad alanı:  Microsoft.VisualStudio.TestTools.LoadTesting
Derleme:  Microsoft.VisualStudio.QualityTools.LoadTestFramework (Microsoft.VisualStudio.QualityTools.LoadTestFramework.dll içinde)

Sözdizimi

'Bildirim
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 dizini oluşturulan özellikleri desteklemez.

Parametreler

  • key
    Tür: System.String
    Almak veya ayarlamak için öğenin anahtarı.

Özellik Değeri

Tür: System.Object
Belirtilen anahtarı olan öğe.

Yüklenen

IDictionary<TKey, TValue>.Item[TKey]

Özel Durumlar

Exception Koşul
ArgumentNullException

keyis nullnull başvuru (Visual Basic\'te Nothing).

KeyNotFoundException

Özellik alınır ve key not found.

NotSupportedException

Bu özelliğin ayarlanması ve LoadTestUserContext salt-okunurdur.

.NET Framework Güvenliği

Ayrıca bkz.

Başvuru

LoadTestUserContext Sınıf

Microsoft.VisualStudio.TestTools.LoadTesting Ad Alanı