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

DataException クラス

ADO.NET コンポーネントを使用してエラーが生成されたときにスローされる例外を表します。

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

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

DataException コンストラクタ ()


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

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

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

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

Dim instance As New DataException(s,
 innerException)
public DataException (
    string s,
    Exception innerException
)
public:
DataException (
    String^ s, 
    Exception^ innerException
)
public DataException (
    String s, 
    Exception innerException
)
public function DataException (
    s : String, 
    innerException : Exception
)

パラメータ

s

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

innerException

内部例外への参照。

解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

DataException コンストラクタ (String)


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

指定したシリアル化情報とコンテキストを使用して、DataException クラスの新しいインスタンスを初期化します。

名前空間: 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 DataException(info,
 context)
protected DataException (
    SerializationInfo info,
    StreamingContext context
)
protected:
DataException (
    SerializationInfo^ info, 
    StreamingContext context
)
protected DataException (
    SerializationInfo info, 
    StreamingContext context
)
protected function DataException (
    info : SerializationInfo, 
    context : StreamingContext
)

パラメータ

info

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

context

指定したシリアル化ストリームの転送元と転送先の説明。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

DataException コンストラクタ


DataException プロパティ


DataException メソッド


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

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

関連項目

DataException クラス
System.Data 名前空間

DataException メンバ

ADO.NET コンポーネントを使用してエラーが生成されたときにスローされる例外を表します。

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


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

関連項目

DataException クラス
System.Data 名前空間



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

「DataException」の関連用語

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

   

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



DataExceptionのページの著作権

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

©2026 GRAS Group, Inc.RSS