ConstraintExceptionとは? わかりやすく解説

ConstraintException クラス

制約に違反するアクションを実行しようとした場合にスローされる例外を表します。

名前空間: System.Data
アセンブリ: System.Data (system.data.dll 内)
構文構文

<SerializableAttribute> _
Public Class ConstraintException
    Inherits DataException
Dim instance As ConstraintException
[SerializableAttribute] 
public class ConstraintException : DataException
[SerializableAttribute] 
public ref class ConstraintException : public
 DataException
/** @attribute SerializableAttribute() */ 
public class ConstraintException extends DataException
SerializableAttribute 
public class ConstraintException extends
 DataException
継承階層継承階層
System.Object
   System.Exception
     System.SystemException
       System.Data.DataException
        System.Data.ConstraintException
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

ConstraintException コンストラクタ ()


ConstraintException コンストラクタ (SerializationInfo, StreamingContext)

シリアル化コンテキストとストリーム コンテキストを指定して、ConstraintException クラスの新しいインスタンスを初期化します。

名前空間: System.Data
アセンブリ: System.Data (system.data.dll 内)
構文構文

Protected Sub New ( _
    info As SerializationInfo, _
    context As StreamingContext _
)
Dim info As SerializationInfo
Dim context As StreamingContext

Dim instance As New ConstraintException(info,
 context)
protected ConstraintException (
    SerializationInfo info,
    StreamingContext context
)
protected:
ConstraintException (
    SerializationInfo^ info, 
    StreamingContext context
)
protected ConstraintException (
    SerializationInfo info, 
    StreamingContext context
)
protected function ConstraintException (
    info : SerializationInfo, 
    context : StreamingContext
)

パラメータ

info

オブジェクトのシリアル化または逆シリアル化に必要なデータ。

context

指定したシリアル化ストリームのソースとデスティネーションの説明。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ConstraintException クラス
ConstraintException メンバ
System.Data 名前空間

ConstraintException コンストラクタ (String)


ConstraintException コンストラクタ (String, Exception)

メモ : このコンストラクタは、.NET Framework version 2.0 で新しく追加されたものです。

指定した文字列と内部例外を使用して、ConstraintException クラスの新しいインスタンスを初期化します。

名前空間: System.Data
アセンブリ: System.Data (system.data.dll 内)
構文構文

Public Sub New ( _
    message As String, _
    innerException As Exception _
)
Dim message As String
Dim innerException As Exception

Dim instance As New ConstraintException(message,
 innerException)
public ConstraintException (
    string message,
    Exception innerException
)
public:
ConstraintException (
    String^ message, 
    Exception^ innerException
)
public ConstraintException (
    String message, 
    Exception innerException
)
public function ConstraintException (
    message : String, 
    innerException : Exception
)

パラメータ

message

例外がスローされたときに表示する文字列。

innerException

現在の例外を発生させた Exception インスタンスを取得します。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ConstraintException クラス
ConstraintException メンバ
System.Data 名前空間

ConstraintException コンストラクタ

ConstraintException クラスの新しいインスタンスを初期化します。
オーバーロードの一覧オーバーロードの一覧

参照参照

関連項目

ConstraintException クラス
ConstraintException メンバ
System.Data 名前空間

ConstraintException プロパティ


ConstraintException メソッド


パブリック メソッドパブリック メソッド

プロテクト メソッドプロテクト メソッド
参照参照

関連項目

ConstraintException クラス
System.Data 名前空間

ConstraintException メンバ

制約に違反するアクションを実行しようとした場合にスローされる例外を表します。

ConstraintException データ型で公開されるメンバを以下の表に示します。


パブリック コンストラクタパブリック コンストラクタ
プロテクト コンストラクタプロテクト コンストラクタ
  名前 説明
プロテクト メソッド ConstraintException オーバーロードされます。 ConstraintException クラスの新しいインスタンスを初期化します。
パブリック プロパティパブリック プロパティ
プロテクト プロパティプロテクト プロパティ
  名前 説明
プロテクト プロパティ HResult  特定の例外に割り当てられているコード化数値である HRESULT を取得または設定します。(Exception から継承されます。)
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

ConstraintException クラス
System.Data 名前空間



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

「ConstraintException」の関連用語

ConstraintExceptionのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



ConstraintExceptionのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS