Udostępnij za pośrednictwem


SqlRetryingEventArgs Klasa

Definicja

Reprezentuje zestaw argumentów przekazanych do Retrying zdarzenia.

public ref class SqlRetryingEventArgs sealed : EventArgs
public sealed class SqlRetryingEventArgs : EventArgs
type SqlRetryingEventArgs = class
    inherit EventArgs
Public NotInheritable Class SqlRetryingEventArgs
Inherits EventArgs
Dziedziczenie
SqlRetryingEventArgs

Konstruktory

SqlRetryingEventArgs(Int32, TimeSpan, IList<Exception>)

Inicjuje nowe wystąpienie klasy SqlRetryingEventArgs.

Właściwości

Cancel

Pobiera lub ustawia wartość wskazującą, czy logika ponawiania powinna zostać anulowana.

Delay

Pobiera bieżący czas oczekiwania jako TimeSpan obiekt.

Exceptions

Pobiera listę wyjątków od pierwszego niepowodzenia próby.

RetryCount

Po pierwszym wystąpieniu wyjątku ponawianie próby-numer.

Dotyczy