SqlAuthenticationProviderException 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| SqlAuthenticationProviderException(String, Exception) |
為導出類別提供最小值集合的保護構造。 方法將被指定為「未指定」。 FailureCode 將顯示為「未知」。 ShouldRetry 會是假的。 重試期間將為 0。 |
| SqlAuthenticationProviderException(SqlAuthenticationMethod, String, Boolean, Int32, String, Exception) |
為衍生類別提供所有公共財產價值的保護建構。 |
SqlAuthenticationProviderException(String, Exception)
為導出類別提供最小值集合的保護構造。
方法將被指定為「未指定」。 FailureCode 將顯示為「未知」。 ShouldRetry 會是假的。 重試期間將為 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
失敗的認證方法,或是未知時為未指定。
- failureCode
- String
故障代碼,或是「未知」,如果不知道。
- shouldRetry
- Boolean
如果該動作需要重試,則為真;否則為假。
- retryPeriod
- Int32
等待的時間,以毫秒計,等待後再嘗試動作。 若不建議重試時間,請指定為 0。 如果是負面就忽略。 當 ShouldRetry 為假時不使用,此時假設為 0。
- message
- String
錯誤訊息。
- causedBy
- Exception
導致此例外的情況(如果有的話)。