共用方式為


SqlServerMigrationSqlGenerator.IsPermissionDeniedError(Exception) 方法

定義

判斷提供者特定例外狀況是否對應至資料庫層級許可權遭拒錯誤。

public override bool IsPermissionDeniedError (Exception exception);
override this.IsPermissionDeniedError : Exception -> bool

參數

exception
Exception

資料庫例外狀況。

傳回

如果提供的例外狀況對應至資料庫層級許可權遭拒錯誤,則為 true;否則為 false。

適用於