SqlRetryLogicOption.AuthorizedSqlCondition Property

Definition

Sets a pre-retry validation function on the CommandText to only include specific SQL statements.

C#
public Predicate<string> AuthorizedSqlCondition { get; set; }

Property Value

Predicate<T> The pre-retry validation delegate function; true if the CommandText is authorized to retry the operation.

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