共用方式為


SqlRetryingEventArgs(Int32, TimeSpan, IList<Exception>) 建構函式

定義

初始化 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))

參數

retryCount
Int32

目前的重試嘗試計數。

delay
TimeSpan

表示叫用下一個反復專案之前,目前線程將暫停多久的延遲。

exceptions
IList<Exception>

自第一次重試導致重試邏輯重新執行函式的例外狀況清單。

適用於