PingException 생성자

정의

PingException 클래스의 새 인스턴스를 초기화합니다.

오버로드

PingException(String)

지정한 메시지를 사용하여 PingException 클래스의 새 인스턴스를 초기화합니다.

PingException(SerializationInfo, StreamingContext)
사용되지 않음.

serialize된 데이터를 사용하여 PingException 클래스의 새 인스턴스를 초기화합니다.

PingException(String, Exception)

지정된 메시지와 내부 예외를 사용하여 PingException 클래스의 새 인스턴스를 초기화합니다.

PingException(String)

Source:
PingException.cs
Source:
PingException.cs
Source:
PingException.cs

지정한 메시지를 사용하여 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)

Source:
PingException.cs
Source:
PingException.cs
Source:
PingException.cs

주의

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

serialize된 데이터를 사용하여 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

serialize된 개체 데이터를 보유하는 개체입니다.

streamingContext
StreamingContext

이 serialization의 소스 또는 대상에 대한 컨텍스트 정보를 지정하는 StreamingContext입니다.

특성

설명

이 생성자는 역직렬화 중에 호출되어 이전에 직렬화된 PingException 개체를 재구성합니다.

적용 대상

PingException(String, Exception)

Source:
PingException.cs
Source:
PingException.cs
Source:
PingException.cs

지정된 메시지와 내부 예외를 사용하여 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 속성을 초기화합니다.

적용 대상