SqlAuthenticationProviderException Constructors

Definition

Overloads

Name Description
SqlAuthenticationProviderException(String, Exception)

Protected construction for derived classes to supply a minimal set of values.

Method will be NotSpecified. FailureCode will be "Unknown". ShouldRetry will be false. RetryPeriod will be 0.

SqlAuthenticationProviderException(SqlAuthenticationMethod, String, Boolean, Int32, String, Exception)

Protected construction for derived classes to supply values for all public properties.

SqlAuthenticationProviderException(String, Exception)

Protected construction for derived classes to supply a minimal set of values.

Method will be NotSpecified. FailureCode will be "Unknown". ShouldRetry will be false. RetryPeriod will be 0.

protected SqlAuthenticationProviderException(string message, Exception? causedBy = default);
new Microsoft.Data.SqlClient.SqlAuthenticationProviderException : string * Exception -> Microsoft.Data.SqlClient.SqlAuthenticationProviderException
Protected Sub New (message As String, Optional causedBy As Exception = Nothing)

Parameters

message
String

The error message.

causedBy
Exception

The exception that caused this exception, if any.

Applies to

SqlAuthenticationProviderException(SqlAuthenticationMethod, String, Boolean, Int32, String, Exception)

Protected construction for derived classes to supply values for all public properties.

protected SqlAuthenticationProviderException(Microsoft.Data.SqlClient.SqlAuthenticationMethod method, string failureCode, bool shouldRetry, int retryPeriod, string message, Exception? causedBy = default);
new Microsoft.Data.SqlClient.SqlAuthenticationProviderException : Microsoft.Data.SqlClient.SqlAuthenticationMethod * string * bool * int * string * Exception -> Microsoft.Data.SqlClient.SqlAuthenticationProviderException
Protected Sub New (method As SqlAuthenticationMethod, failureCode As String, shouldRetry As Boolean, retryPeriod As Integer, message As String, Optional causedBy As Exception = Nothing)

Parameters

method
SqlAuthenticationMethod

The authentication method that failed, or NotSpecified if not known.

failureCode
String

The failure code, or "Unknown" if not known.

shouldRetry
Boolean

True if the action should be retried, false otherwise.

retryPeriod
Int32

The period of time, in milliseconds, to wait before retrying the action. Specify 0 if no retry period is suggested. Ignored if negative. Not used when ShouldRetry is false, in which cases 0 is assumed.

message
String

The error message.

causedBy
Exception

The exception that caused this exception, if any.

Applies to