Udostępnij za pośrednictwem


Zdarzenie LoadTest.ThresholdExceeded

Występuje po przekroczeniu progu regułę.

Przestrzeń nazw:  Microsoft.VisualStudio.TestTools.LoadTesting
Zestaw:  Microsoft.VisualStudio.QualityTools.LoadTestFramework (w Microsoft.VisualStudio.QualityTools.LoadTestFramework.dll)

Składnia

'Deklaracja
Public Event ThresholdExceeded As EventHandler(Of ThresholdExceededEventArgs)
public event EventHandler<ThresholdExceededEventArgs> ThresholdExceeded
public:
 event EventHandler<ThresholdExceededEventArgs^>^ ThresholdExceeded {
    void add (EventHandler<ThresholdExceededEventArgs^>^ value);
    void remove (EventHandler<ThresholdExceededEventArgs^>^ value);
}
member ThresholdExceeded : IEvent<EventHandler<ThresholdExceededEventArgs>,
    ThresholdExceededEventArgs>
Język JScript nie obsługuje zdarzeń.

Uwagi

ThresholdExceededEventArgs identyfikuje licznika wydajności, która przekroczenie wartości progowej, wartość próbka licznika wydajności, oraz określa, czy wartość Przekroczono próg krytyczny lub po prostu poziomie próg ostrzeżenia.

[!UWAGA]

Jeśli występuje więcej niż jeden komputer agenta Uruchamianie testu obciążenia ThresholdExceeded zdarzenia będą uruchamiane dla wszystkich agentów.

Aby uzyskać więcej informacji o sposobie obsługi zdarzeń, zobacz Consuming Events.

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

LoadTest Klasa

Przestrzeń nazw Microsoft.VisualStudio.TestTools.LoadTesting

Inne zasoby

About Counter Sets