SqlRetryLogicBaseProvider.RetryLogic 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
定义重试逻辑,该逻辑用于根据遇到的异常决定何时重试。
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> 事件来收集有关重试执行的数据。