SqlTypeException コンストラクター

定義

SqlTypeException クラスの新しいインスタンスを初期化します。

オーバーロード

SqlTypeException()

SqlTypeException クラスの新しいインスタンスを初期化します。

SqlTypeException(String)

指定したエラー メッセージを使用して、SqlTypeException クラスの新しいインスタンスを初期化します。

SqlTypeException(SerializationInfo, StreamingContext)
古い.

シリアル化したデータを使用して、SqlTypeException クラスの新しいインスタンスを初期化します。

SqlTypeException(String, Exception)

指定したエラー メッセージおよびこの例外の原因となった内部例外への参照を使用して、SqlTypeException クラスの新しいインスタンスを初期化します。

SqlTypeException()

SqlTypeException クラスの新しいインスタンスを初期化します。

public:
 SqlTypeException();
public SqlTypeException ();
Public Sub New ()

適用対象

SqlTypeException(String)

指定したエラー メッセージを使用して、SqlTypeException クラスの新しいインスタンスを初期化します。

public:
 SqlTypeException(System::String ^ message);
public SqlTypeException (string message);
public SqlTypeException (string? message);
new System.Data.SqlTypes.SqlTypeException : string -> System.Data.SqlTypes.SqlTypeException
Public Sub New (message As String)

パラメーター

message
String

例外の原因を説明するエラー メッセージ。

適用対象

SqlTypeException(SerializationInfo, StreamingContext)

注意事項

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

シリアル化したデータを使用して、SqlTypeException クラスの新しいインスタンスを初期化します。

protected:
 SqlTypeException(System::Runtime::Serialization::SerializationInfo ^ si, System::Runtime::Serialization::StreamingContext sc);
protected SqlTypeException (System.Runtime.Serialization.SerializationInfo si, System.Runtime.Serialization.StreamingContext sc);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected SqlTypeException (System.Runtime.Serialization.SerializationInfo si, System.Runtime.Serialization.StreamingContext sc);
new System.Data.SqlTypes.SqlTypeException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Data.SqlTypes.SqlTypeException
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.Data.SqlTypes.SqlTypeException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Data.SqlTypes.SqlTypeException
Protected Sub New (si As SerializationInfo, sc As StreamingContext)

パラメーター

si
SerializationInfo

シリアル化されたオブジェクト データを保持するオブジェクト。

sc
StreamingContext

転送元または転送先に関するコンテキスト情報。

属性

注釈

このコンストラクターは、シリアル化解除の際に呼び出されて、ストリームで送信された例外オブジェクトを再構成します。 詳細については、「 XML および SOAP のシリアル化」を参照してください。

こちらもご覧ください

適用対象

SqlTypeException(String, Exception)

指定したエラー メッセージおよびこの例外の原因となった内部例外への参照を使用して、SqlTypeException クラスの新しいインスタンスを初期化します。

public:
 SqlTypeException(System::String ^ message, Exception ^ e);
public SqlTypeException (string message, Exception e);
public SqlTypeException (string? message, Exception? e);
new System.Data.SqlTypes.SqlTypeException : string * Exception -> System.Data.SqlTypes.SqlTypeException
Public Sub New (message As String, e As Exception)

パラメーター

message
String

例外を説明するメッセージ。 このコンストラクターの呼び出し元は、この文字列が現在のシステム環境向けにローカライズされていることを確認する必要があります。

e
Exception

現在の例外の原因となった例外。 innerException パラメーターが null でない場合は、内部例外を処理する catch ブロックで現在の例外が発生します。

適用対象