Share via


SqlRetryLogicBaseProvider.RetryLogic Property

Definition

Defines the retry logic used to decide when to retry based on the encountered exception.

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

Property Value

Remarks

Note

The RetryLogic property is assigned at SqlRetryLogicBaseProvider creation and its value is used as a template internally. Don't use it to monitor the status of the retry logic during and after execution. Instead, use the <xref=E:Microsoft.Data.SqlClient.SqlRetryLogicBaseProvider.Retrying> event to collect data about retry executions.

Applies to