SqlRetryLogicBaseProvider.Retrying Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs before applying the calculated delay time and executing the function on a next attempt.
public:
property EventHandler<Microsoft::Data::SqlClient::SqlRetryingEventArgs ^> ^ Retrying { EventHandler<Microsoft::Data::SqlClient::SqlRetryingEventArgs ^> ^ get(); void set(EventHandler<Microsoft::Data::SqlClient::SqlRetryingEventArgs ^> ^ value); };
public EventHandler<Microsoft.Data.SqlClient.SqlRetryingEventArgs> Retrying { get; set; }
member this.Retrying : EventHandler<Microsoft.Data.SqlClient.SqlRetryingEventArgs> with get, set
Public Property Retrying As EventHandler(Of SqlRetryingEventArgs)
Property Value
EventHandler with event argument of SqlRetryingEventArgs object can be subscribed.
Remarks
[IMPORTANT!] Don't block execution with a time consuming action when an event occurs. For instance, if you log data to a file, run it in a new thread to avoid blocking the main execution thread.