SqlAuthenticationProviderException 构造函数

定义

重载

名称 说明
SqlAuthenticationProviderException(String, Exception)

派生类的受保护构造,以提供一组最小的值。

方法将为 NotSpecified。 FailureCode 将为“Unknown”。 ShouldRetry 将为 false。 RetryPeriod 将为 0。

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

派生类的受保护构造,以提供所有公共属性的值。

SqlAuthenticationProviderException(String, Exception)

派生类的受保护构造,以提供一组最小的值。

方法将为 NotSpecified。 FailureCode 将为“Unknown”。 ShouldRetry 将为 false。 RetryPeriod 将为 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)

参数

message
String

错误消息。

causedBy
Exception

导致此异常的异常(如果有)。

适用于

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

派生类的受保护构造,以提供所有公共属性的值。

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)

参数

method
SqlAuthenticationMethod

失败的身份验证方法,如果未知,则为 NotSpecified。

failureCode
String

失败代码或“未知”(如果未知)。

shouldRetry
Boolean

如果应重试操作,则为 True;否则为 false。

retryPeriod
Int32

重试操作前等待的时间段(以毫秒为单位)。 如果未建议重试期限,则指定 0。 如果为负值,则忽略。 在 ShouldRetry 为 false 时不使用,在这种情况下假定为 0。

message
String

错误消息。

causedBy
Exception

导致此异常的异常(如果有)。

适用于