SqlAuthenticationProviderException Oluşturucular

Tanım

Aşırı Yüklemeler

Name Description
SqlAuthenticationProviderException(String, Exception)

Minimum değer kümesi sağlamak için türetilmiş sınıflar için korumalı yapı.

Yöntem NotSpecified olacaktır. FailureCode "Bilinmiyor" olacaktır. ShouldRetry false olur. RetryPeriod 0 olacaktır.

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

Türetilmiş sınıflar için korumalı yapı, tüm genel özellikler için değer sağlar.

SqlAuthenticationProviderException(String, Exception)

Minimum değer kümesi sağlamak için türetilmiş sınıflar için korumalı yapı.

Yöntem NotSpecified olacaktır. FailureCode "Bilinmiyor" olacaktır. ShouldRetry false olur. RetryPeriod 0 olacaktır.

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)

Parametreler

message
String

Hata iletisi.

causedBy
Exception

Varsa, bu özel duruma neden olan özel durum.

Şunlara uygulanır

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

Türetilmiş sınıflar için korumalı yapı, tüm genel özellikler için değer sağlar.

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)

Parametreler

method
SqlAuthenticationMethod

Başarısız olan kimlik doğrulama yöntemi veya bilinmiyorsa NotSpecified.

failureCode
String

Hata kodu veya bilinmiyorsa "Bilinmiyor".

shouldRetry
Boolean

Eylemin yeniden denenmesi gerekiyorsa true, aksi takdirde false.

retryPeriod
Int32

Eylemi yeniden denemeden önce beklenmesi için milisaniye cinsinden süre. Yeniden deneme süresi önerilmiyorsa 0 belirtin. Negatifse yoksayılır. ShouldRetry false olduğunda kullanılmaz, bu durumlarda 0 varsayılır.

message
String

Hata iletisi.

causedBy
Exception

Varsa, bu özel duruma neden olan özel durum.

Şunlara uygulanır