Sdílet prostřednictvím


SqlRetryingEventArgs(Int32, TimeSpan, IList<Exception>) Konstruktor

Definice

Inicializuje novou instanci SqlRetryingEventArgs třídy .

public:
 SqlRetryingEventArgs(int retryCount, TimeSpan delay, System::Collections::Generic::IList<Exception ^> ^ exceptions);
public SqlRetryingEventArgs (int retryCount, TimeSpan delay, System.Collections.Generic.IList<Exception> exceptions);
new Microsoft.Data.SqlClient.SqlRetryingEventArgs : int * TimeSpan * System.Collections.Generic.IList<Exception> -> Microsoft.Data.SqlClient.SqlRetryingEventArgs
Public Sub New (retryCount As Integer, delay As TimeSpan, exceptions As IList(Of Exception))

Parametry

retryCount
Int32

Aktuální počet opakovaných pokusů.

delay
TimeSpan

Zpoždění, které označuje, jak dlouho bude aktuální vlákno pozastaveno před vyvolání další iterace.

exceptions
IList<Exception>

Seznam výjimek od prvního opakování, které způsobily, že logika opakování znovu spustila funkci.

Platí pro