Condividi tramite


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

Definizione

Inizializza una nuova istanza della classe SqlRetryingEventArgs.

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))

Parametri

retryCount
Int32

Numero di tentativi correnti.

delay
TimeSpan

Ritardo che indica quanto tempo verrà sospeso il thread corrente prima che venga richiamata l'iterazione successiva.

exceptions
IList<Exception>

Elenco di eccezioni dal primo tentativo che ha causato la logica di ripetizione dei tentativi per eseguire nuovamente la funzione.

Si applica a