SqlAuthenticationProviderException Construtores

Definição

Sobrecargas

Nome Description
SqlAuthenticationProviderException(String, Exception)

Construção protegida para classes derivadas para fornecer um conjunto mínimo de valores.

O método será NotSpecified. FailureCode será "Desconhecido". ShouldRetry será false. RetryPeriod será 0.

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

Construção protegida para classes derivadas para fornecer valores para todas as propriedades públicas.

SqlAuthenticationProviderException(String, Exception)

Construção protegida para classes derivadas para fornecer um conjunto mínimo de valores.

O método será NotSpecified. FailureCode será "Desconhecido". ShouldRetry será false. RetryPeriod será 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)

Parâmetros

message
String

A mensagem de erro.

causedBy
Exception

A exceção que causou essa exceção, se houver.

Aplica-se a

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

Construção protegida para classes derivadas para fornecer valores para todas as propriedades públicas.

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)

Parâmetros

method
SqlAuthenticationMethod

O método de autenticação que falhou ou NotSpecified se não for conhecido.

failureCode
String

O código de falha ou "Desconhecido" se não for conhecido.

shouldRetry
Boolean

True se a ação deve ser repetida, caso contrário, false.

retryPeriod
Int32

O período de tempo, em milissegundos, para aguardar antes de repetir a ação. Especifique 0 se nenhum período de repetição for sugerido. Ignorado se negativo. Não usado quando ShouldRetry é falso, nos quais os casos 0 são assumidos.

message
String

A mensagem de erro.

causedBy
Exception

A exceção que causou essa exceção, se houver.

Aplica-se a