SqlRetryingEventArgs(Int32, TimeSpan, IList<Exception>) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the SqlRetryingEventArgs class.
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))
Parameters
- retryCount
- Int32
The current retry attempt count.
- delay
- TimeSpan
The delay that indicates how long the current thread will be suspended before the next iteration is invoked.
The list of exceptions since the first retry that caused the retry logic to re-execute the function.