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
- Anında arayanlar için tam güven. Bu üye kısmen güvenilen kodla kullanılamaz. Daha fazla bilgi için bkz. kısmen güvenilir kod tarafından Kitaplıklar kullanma.