PingException コンストラクター

定義

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

オーバーロード

PingException(String)

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

PingException(SerializationInfo, StreamingContext)
古い.

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

PingException(String, Exception)

指定したメッセージと内部例外を使用して、PingException クラスの新しいインスタンスを初期化します。

PingException(String)

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

public:
 PingException(System::String ^ message);
public PingException (string? message);
public PingException (string message);
new System.Net.NetworkInformation.PingException : string -> System.Net.NetworkInformation.PingException
Public Sub New (message As String)

パラメーター

message
String

エラーを説明する String

注釈

このコンストラクターは、 パラメーターの Message テキストを使用して プロパティを message 初期化します。 InnerException プロパティが null に設定されています。

適用対象

PingException(SerializationInfo, StreamingContext)

注意事項

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

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

protected:
 PingException(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext);
protected PingException (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
[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 PingException (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
new System.Net.NetworkInformation.PingException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Net.NetworkInformation.PingException
[<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.Net.NetworkInformation.PingException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Net.NetworkInformation.PingException
Protected Sub New (serializationInfo As SerializationInfo, streamingContext As StreamingContext)

パラメーター

serializationInfo
SerializationInfo

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

streamingContext
StreamingContext

このシリアル化の転送元と転送先に関する文脈情報を指定する StreamingContext

属性

注釈

このコンストラクターは、以前にシリアル化されたオブジェクトを再構成するために逆シリアル化中に呼び出されます PingException

適用対象

PingException(String, Exception)

指定したメッセージと内部例外を使用して、PingException クラスの新しいインスタンスを初期化します。

public:
 PingException(System::String ^ message, Exception ^ innerException);
public PingException (string? message, Exception? innerException);
public PingException (string message, Exception innerException);
new System.Net.NetworkInformation.PingException : string * Exception -> System.Net.NetworkInformation.PingException
Public Sub New (message As String, innerException As Exception)

パラメーター

message
String

エラーを説明する String

innerException
Exception

現在の例外の発生原因である例外。

注釈

このコンストラクターは、 パラメーター内の Message テキストを使用して プロパティを message 初期化し、 パラメーターを使用して InnerException プロパティを innerException 初期化します。

適用対象