Udostępnij za pośrednictwem


PingException Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy PingException.

Przeciążenia

Nazwa Opis
PingException(String)

Inicjuje nowe wystąpienie klasy PingException przy użyciu określonego komunikatu.

PingException(SerializationInfo, StreamingContext)
Przestarzałe.

Inicjuje nowe wystąpienie klasy PingException z serializowanymi danymi.

PingException(String, Exception)

Inicjuje nowe wystąpienie klasy PingException przy użyciu określonego komunikatu i wyjątku wewnętrznego.

PingException(String)

Źródło:
PingException.cs
Źródło:
PingException.cs
Źródło:
PingException.cs
Źródło:
PingException.cs
Źródło:
PingException.cs

Inicjuje nowe wystąpienie klasy PingException przy użyciu określonego komunikatu.

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)

Parametry

message
String

String opisujący błąd.

Uwagi

Ten konstruktor inicjuje właściwość Message tekstem w parametrze message. Właściwość InnerException jest ustawiona na wartość null.

Dotyczy

PingException(SerializationInfo, StreamingContext)

Źródło:
PingException.cs
Źródło:
PingException.cs
Źródło:
PingException.cs
Źródło:
PingException.cs
Źródło:
PingException.cs

Uwaga

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

Inicjuje nowe wystąpienie klasy PingException z serializowanymi danymi.

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);
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}")>]
new System.Net.NetworkInformation.PingException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Net.NetworkInformation.PingException
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)

Parametry

serializationInfo
SerializationInfo

Obiekt, który przechowuje serializowane dane obiektu.

streamingContext
StreamingContext

StreamingContext, który określa kontekstowe informacje o źródle lub miejscu docelowym dla tej serializacji.

Atrybuty

Uwagi

Ten konstruktor jest wywoływany podczas deserializacji w celu odtworzenia wcześniej serializowanego obiektu PingException.

Dotyczy

PingException(String, Exception)

Źródło:
PingException.cs
Źródło:
PingException.cs
Źródło:
PingException.cs
Źródło:
PingException.cs
Źródło:
PingException.cs

Inicjuje nowe wystąpienie klasy PingException przy użyciu określonego komunikatu i wyjątku wewnętrznego.

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)

Parametry

message
String

String opisujący błąd.

innerException
Exception

Wyjątek, który powoduje bieżący wyjątek.

Uwagi

Ten konstruktor inicjuje właściwość Message z tekstem w parametrze message, a właściwość InnerException z parametrem innerException.

Dotyczy