PingException Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy PingException.

Przeciążenia

PingException(String)

Inicjuje nowe wystąpienie klasy PingException, używając określonego komunikatu.

PingException(SerializationInfo, StreamingContext)
Przestarzałe.

Inicjuje nowe wystąpienie klasy PingException z zserializowanymi danymi.

PingException(String, Exception)

Inicjuje PingException nowe wystąpienie klasy 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

Inicjuje nowe wystąpienie klasy PingException, używając 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

Element String opisujący błąd.

Uwagi

Ten konstruktor inicjuje Message właściwość za pomocą tekstu w parametrze message . Właściwość InnerException ma ustawioną wartość null.

Dotyczy

PingException(SerializationInfo, StreamingContext)

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

Przestroga

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

Inicjuje nowe wystąpienie klasy PingException z zserializowanymi danymi.

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)

Parametry

serializationInfo
SerializationInfo

Obiekt zawierający dane serializowanego obiektu.

streamingContext
StreamingContext

Element StreamingContext określający 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 PingException obiektu.

Dotyczy

PingException(String, Exception)

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

Inicjuje PingException nowe wystąpienie klasy 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

Element String opisujący błąd.

innerException
Exception

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

Uwagi

Ten konstruktor inicjuje Message właściwość za pomocą tekstu w parametrze message i InnerException właściwość z parametrem innerException .

Dotyczy