MigrationSqlGenerator.IsPermissionDeniedError(Exception) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷提供者特定例外狀況是否對應至資料庫層級許可權拒絕錯誤。
public virtual bool IsPermissionDeniedError (Exception exception);
abstract member IsPermissionDeniedError : Exception -> bool
override this.IsPermissionDeniedError : Exception -> bool
參數
- exception
- Exception
資料庫例外狀況。
傳回
如果提供的例外狀況對應至資料庫層級許可權拒絕錯誤,則為 true;否則為 false。