SqlAuthenticationProviderException Constructeurs
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
| Nom | Description |
|---|---|
| SqlAuthenticationProviderException(String, Exception) |
Construction protégée pour les classes dérivées pour fournir un ensemble minimal de valeurs. La méthode sera NotSpecified. FailureCode sera « Inconnu ». ShouldRetry sera false. RetryPeriod sera 0. |
| SqlAuthenticationProviderException(SqlAuthenticationMethod, String, Boolean, Int32, String, Exception) |
Construction protégée pour les classes dérivées afin de fournir des valeurs pour toutes les propriétés publiques. |
SqlAuthenticationProviderException(String, Exception)
Construction protégée pour les classes dérivées pour fournir un ensemble minimal de valeurs.
La méthode sera NotSpecified. FailureCode sera « Inconnu ». ShouldRetry sera false. RetryPeriod sera 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)
Paramètres
- message
- String
Message d’erreur.
- causedBy
- Exception
Exception qui a provoqué cette exception, le cas échéant.
S’applique à
SqlAuthenticationProviderException(SqlAuthenticationMethod, String, Boolean, Int32, String, Exception)
Construction protégée pour les classes dérivées afin de fournir des valeurs pour toutes les propriétés publiques.
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)
Paramètres
- method
- SqlAuthenticationMethod
Méthode d’authentification qui a échoué ou NotSpecified si elle n’est pas connue.
- failureCode
- String
Code d’échec, ou « Inconnu » s’il n’est pas connu.
- shouldRetry
- Boolean
True si l’action doit être retentée, false sinon.
- retryPeriod
- Int32
Période de temps, en millisecondes, à attendre avant de réessayer l’action. Spécifiez 0 si aucune période de nouvelle tentative n’est suggérée. Ignoré si négatif. Non utilisé lorsque ShouldRetry a la valeur false, auquel cas 0 est supposé.
- message
- String
Message d’erreur.
- causedBy
- Exception
Exception qui a provoqué cette exception, le cas échéant.