SqlRetryLogicBase.TransientPredicate Property

Definition

Delegate to a transient condition predicate. The function that this delegate points to must return a true value when an expected transient exception happens.

C#
public Predicate<Exception> TransientPredicate { get; protected set; }

Property Value

Predicate<T> value that delegates to a function that receives a Exception input parameter.

Applies to

Product Versions
SqlClient .NET Core 3.0, 3.1, 4.0, 4.1, 5.0, 5.1, 5.2
SqlClient .NET Framework 3.0, 3.1, 4.0, 4.1, 5.0, 5.1, 5.2
SqlClient .NET Standard 3.0, 3.1, 4.0, 4.1, 5.0, 5.1, 5.2