SqlRetryIntervalBaseEnumerator 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
SqlRetryIntervalBaseEnumerator() |
使用间隔时间、最小和最大间隔时间的默认值零初始化 类的新实例 SqlRetryIntervalBaseEnumerator 。 |
SqlRetryIntervalBaseEnumerator(TimeSpan, TimeSpan, TimeSpan) |
初始化 SqlRetryIntervalBaseEnumerator 类的新实例。 |
SqlRetryIntervalBaseEnumerator()
使用间隔时间、最小和最大间隔时间的默认值零初始化 类的新实例 SqlRetryIntervalBaseEnumerator 。
public:
SqlRetryIntervalBaseEnumerator();
public SqlRetryIntervalBaseEnumerator();
Public Sub New ()
适用于
SqlRetryIntervalBaseEnumerator(TimeSpan, TimeSpan, TimeSpan)
初始化 SqlRetryIntervalBaseEnumerator 类的新实例。
public:
SqlRetryIntervalBaseEnumerator(TimeSpan timeInterval, TimeSpan maxTime, TimeSpan minTime);
public SqlRetryIntervalBaseEnumerator(TimeSpan timeInterval, TimeSpan maxTime, TimeSpan minTime);
new Microsoft.Data.SqlClient.SqlRetryIntervalBaseEnumerator : TimeSpan * TimeSpan * TimeSpan -> Microsoft.Data.SqlClient.SqlRetryIntervalBaseEnumerator
Public Sub New (timeInterval As TimeSpan, maxTime As TimeSpan, minTime As TimeSpan)
参数
- timeInterval
- TimeSpan
用于计算每次尝试之前的时间延迟的间隔时间。
- maxTime
- TimeSpan
允许作为间隔时间的最长时间。
- minTime
- TimeSpan
允许作为间隔时间的最短时间。