次の方法で共有


EntityCommandCompilationException クラス

[このページは、Entity Framework 6 に関するページです。最新バージョンは、'Entity Framework' NuGet パッケージとして入手できます。Entity Framework の詳細については、msdn.com/data/ef を参照してください。]

CommandCompilation を準備または実行しようとしたときのエラーを表します。 この例外は、EntityCommand を使用してステートメントを実行するときに、プロバイダーの例外 (SqlException、OracleException) を保持するためにキャッチする共通の例外を提供することを意図しています。

継承階層

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

名前空間:  System.Data.Entity.Core
アセンブリ:  EntityFramework (EntityFramework.dll 内)

構文

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

EntityCommandCompilationException 型で公開されるメンバーは以下のとおりです。

コンストラクター

  名前 説明
パブリック メソッド EntityCommandCompilationException() メッセージと内部例外を指定せずに、EntityCommandCompilationException の新しいインスタンスを初期化します。おそらく、存在する必要はありませんが、FxCop が適切になります。
パブリック メソッド EntityCommandCompilationException(String) メッセージを指定して、内部例外を指定せずに、EntityCommandCompilationException の新しいインスタンスを初期化します。おそらく、存在する必要はありませんが、FxCop が適切になります。
パブリック メソッド EntityCommandCompilationException(String, Exception) メッセージと内部例外インスタンスを指定して、EntityCommandCompilationException の新しいインスタンスを初期化します。

上揃え

プロパティ

  名前 説明
パブリック プロパティ 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 から継承されます。)

上揃え

スレッド セーフ

この型のすべてのパブリック static (Visual Basic では Shared) メンバーは、スレッド セーフです。インスタンス メンバーの場合は、スレッド セーフであるとは限りません。

参照

参照

System.Data.Entity.Core 名前空間