AddressAlreadyInUseException コンストラクター

定義

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

オーバーロード

AddressAlreadyInUseException()

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

AddressAlreadyInUseException(String)

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

AddressAlreadyInUseException(SerializationInfo, StreamingContext)

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

AddressAlreadyInUseException(String, Exception)

指定したエラー メッセージと、例外の原因である内部例外への参照を使用して、AddressAlreadyInUseException クラスの新しいインスタンスを初期化します。

注釈

ユーザーにエラー メッセージを渡す場合は、AddressAlreadyInUseException(String) コンストラクターを使用します。

例外の原因となった内部例外のエラー メッセージとその参照をユーザーに渡す場合は、AddressAlreadyInUseException(String, Exception) コンストラクターを使用します。

シリアル化情報およびストリーム コンテキストを渡す場合は、AddressAlreadyInUseException(SerializationInfo, StreamingContext) コンストラクターを使用します。

AddressAlreadyInUseException()

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

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

適用対象

AddressAlreadyInUseException(String)

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

public:
 AddressAlreadyInUseException(System::String ^ message);
public AddressAlreadyInUseException (string message);
new System.ServiceModel.AddressAlreadyInUseException : string -> System.ServiceModel.AddressAlreadyInUseException
Public Sub New (message As String)

パラメーター

message
String

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

注釈

エラー メッセージをユーザーに渡す場合は、このコンストラクターを使用します。 メッセージ パラメーターの内容は、想定されるユーザーが理解できるものであることが必要です。

適用対象

AddressAlreadyInUseException(SerializationInfo, StreamingContext)

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

protected:
 AddressAlreadyInUseException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected AddressAlreadyInUseException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.ServiceModel.AddressAlreadyInUseException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.ServiceModel.AddressAlreadyInUseException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

パラメーター

info
SerializationInfo

例外をシリアル化するために必要なすべてのデータを含む SerializationInfo

context
StreamingContext

ストリームの転送元および転送先を指定する StreamingContext

注釈

このコンストラクターは、逆シリアル化中に、ストリームを介して送信された例外オブジェクトを再構築するために呼び出されます。

適用対象

AddressAlreadyInUseException(String, Exception)

指定したエラー メッセージと、例外の原因である内部例外への参照を使用して、AddressAlreadyInUseException クラスの新しいインスタンスを初期化します。

public:
 AddressAlreadyInUseException(System::String ^ message, Exception ^ innerException);
public AddressAlreadyInUseException (string message, Exception innerException);
new System.ServiceModel.AddressAlreadyInUseException : string * Exception -> System.ServiceModel.AddressAlreadyInUseException
Public Sub New (message As String, innerException As Exception)

パラメーター

message
String

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

innerException
Exception

現在の例外がスローされる原因となった Exception

注釈

内部例外についてのエラー メッセージと情報をユーザーに渡す場合にこのコンストラクターを使用します。 メッセージ パラメーターの内容は、想定されるユーザーが理解できるものであることが必要です。

前の例外の直接の結果としてスローされる例外は、InnerException プロパティに前の例外への参照を含んでいる場合があります。 InnerException プロパティは、コンストラクターに渡される値と同じ値を返します。また、null プロパティが内部例外の値をコンストラクターに提供しない場合は、Nothing 参照 (Visual Basic では InnerException) を返します。

適用対象