SqlRetryLogicBaseProvider.RetryLogic 属性

定义

定义重试逻辑,该逻辑用于根据遇到的异常决定何时重试。

public:  property Microsoft::Data::SqlClient::SqlRetryLogicBase ^ RetryLogic {  public:
Microsoft::Data::SqlClient::SqlRetryLogicBase ^ get(); protected:
 void set(Microsoft::Data::SqlClient::SqlRetryLogicBase ^ value); };
public Microsoft.Data.SqlClient.SqlRetryLogicBase RetryLogic { get; protected set; }
member this.RetryLogic : Microsoft.Data.SqlClient.SqlRetryLogicBase with get, set
Public Property RetryLogic As SqlRetryLogicBase

属性值

注解

注意

属性 RetryLogic 在创建时 SqlRetryLogicBaseProvider 分配,其值在内部用作模板。 不要使用它来监视执行期间和之后重试逻辑的状态。 请改用 <xref=E:Microsoft.Data.SqlClient.SqlRetryLogicBaseProvider.Retrying> 事件来收集有关重试执行的数据。

适用于