共用方式為


ProviderIncompatibleException 類別

[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]

當存放區提供者出現不相容於實體用戶端提供者的行為時所擲回的例外狀況。

繼承階層

System.Object
  System.Exception
    System.SystemException
      System.Data.DataException
        System.Data.Entity.Core.EntityException
          System.Data.Entity.Core.ProviderIncompatibleException

命名空間:  System.Data.Entity.Core
組件:  EntityFramework (在 EntityFramework.dll 中)

語法

'宣告
<SerializableAttribute> _
Public NotInheritable Class ProviderIncompatibleException _
    Inherits EntityException
'用途
Dim instance As ProviderIncompatibleException
[SerializableAttribute]
public sealed class ProviderIncompatibleException : EntityException
[SerializableAttribute]
public ref class ProviderIncompatibleException sealed : public EntityException
[<SealedAttribute>]
[<SerializableAttribute>]
type ProviderIncompatibleException =  
    class 
        inherit EntityException 
    end
public final class ProviderIncompatibleException extends EntityException

ProviderIncompatibleException 類型會公開下列成員。

建構函式

  名稱 描述
公用方法 ProviderIncompatibleException() 初始化 ProviderIncompatibleException 類別的新執行個體。
公用方法 ProviderIncompatibleException(String) 使用指定的錯誤訊息,初始化 ProviderIncompatibleException 類別的新執行個體。
公用方法 ProviderIncompatibleException(String, Exception) 使用指定的錯誤訊息和內部例外狀況,初始化 ProviderIncompatibleException 類別的新執行個體。

靠上

屬性

  名稱 描述
公用屬性 Data (繼承自 Exception)。
公用屬性 HelpLink (繼承自 Exception)。
公用屬性 HResult (繼承自 Exception)。
公用屬性 InnerException (繼承自 Exception)。
公用屬性 Message (繼承自 Exception)。
公用屬性 Source (繼承自 Exception)。
公用屬性 StackTrace (繼承自 Exception)。
公用屬性 TargetSite (繼承自 Exception)。

靠上

方法

  名稱 描述
公用方法 Equals (繼承自 Object)。
公用方法 GetBaseException (繼承自 Exception)。
公用方法 GetHashCode (繼承自 Object)。
公用方法 GetObjectData 安全性關鍵。 (繼承自 Exception)。
公用方法 GetType (繼承自 Exception)。
公用方法 ToString (繼承自 Exception)。

靠上

執行緒安全

這個類型的任何 Public static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。並非所有的執行個體成員都是安全執行緒。

請參閱

參考

System.Data.Entity.Core 命名空間