Aracılığıyla paylaş


LoadTestContext.Remove Yöntem (String)

Belirtilen anahtarı olan öğeyi kaldırır LoadTestContext.

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

Sözdizimi

'Bildirim
Public Function Remove ( _
    key As String _
) As Boolean
public bool Remove(
    string key
)
public:
virtual bool Remove(
    String^ key
) sealed
abstract Remove : 
        key:string -> bool 
override Remove : 
        key:string -> bool 
public final function Remove(
    key : String
) : boolean

Parametreler

Dönüş Değeri

Tür: System.Boolean
true öğesi başarıyla kaldırdıysanız; Aksi takdirde, false.Bu yöntem ayrıca döndürür false , key bulunamadı özgün LoadTestContext.

Yüklenen

IDictionary<TKey, TValue>.Remove(TKey)

Özel Durumlar

Exception Koşul
ArgumentNullException

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

NotSupportedException

LoadTestContextsalt okunur durumdadır.

.NET Framework Güvenliği

Ayrıca bkz.

Başvuru

LoadTestContext Sınıf

Remove Fazla Yük

Microsoft.VisualStudio.TestTools.LoadTesting Ad Alanı