HttpListenerException 생성자

정의

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

오버로드

HttpListenerException()

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

HttpListenerException(Int32)

지정된 오류 코드를 사용하여 HttpListenerException 클래스의 새 인스턴스를 초기화합니다.

HttpListenerException(Int32, String)

지정된 오류 코드와 메시지를 사용하여 HttpListenerException 클래스의 새 인스턴스를 초기화합니다.

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

HttpListenerExceptionSerializationInfo 클래스에 지정된 인스턴스에서 StreamingContext 클래스의 새 인스턴스를 초기화합니다.

HttpListenerException()

Source:
HttpListenerException.cs
Source:
HttpListenerException.cs
Source:
HttpListenerException.cs

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

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

설명

이 생성자는 가장 최근의 Windows 오류를 사용하여 및 Message 속성을 설정합니다ErrorCode.

적용 대상

HttpListenerException(Int32)

Source:
HttpListenerException.cs
Source:
HttpListenerException.cs
Source:
HttpListenerException.cs

지정된 오류 코드를 사용하여 HttpListenerException 클래스의 새 인스턴스를 초기화합니다.

public:
 HttpListenerException(int errorCode);
public HttpListenerException (int errorCode);
new System.Net.HttpListenerException : int -> System.Net.HttpListenerException
Public Sub New (errorCode As Integer)

매개 변수

errorCode
Int32

발생한 오류를 식별하는 Int32 값입니다.

설명

errorCode 은 속성을 설정하는 ErrorCode 데 사용됩니다.

적용 대상

HttpListenerException(Int32, String)

Source:
HttpListenerException.cs
Source:
HttpListenerException.cs
Source:
HttpListenerException.cs

지정된 오류 코드와 메시지를 사용하여 HttpListenerException 클래스의 새 인스턴스를 초기화합니다.

public:
 HttpListenerException(int errorCode, System::String ^ message);
public HttpListenerException (int errorCode, string message);
new System.Net.HttpListenerException : int * string -> System.Net.HttpListenerException
Public Sub New (errorCode As Integer, message As String)

매개 변수

errorCode
Int32

발생한 오류를 식별하는 Int32 값입니다.

message
String

발생한 오류를 설명하는 String입니다.

설명

errorCode 은 속성을 설정하는 ErrorCode 데 사용됩니다. message 매개 변수는 속성을 설정하는 Message 데 사용됩니다.

적용 대상

HttpListenerException(SerializationInfo, StreamingContext)

Source:
HttpListenerException.cs
Source:
HttpListenerException.cs
Source:
HttpListenerException.cs

주의

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

HttpListenerExceptionSerializationInfo 클래스에 지정된 인스턴스에서 StreamingContext 클래스의 새 인스턴스를 초기화합니다.

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

매개 변수

serializationInfo
SerializationInfo

SerializationInfo 개체를 역직렬화하는 데 필요한 정보가 들어 있는 HttpListenerException 개체입니다.

streamingContext
StreamingContext

StreamingContext 개체입니다.

특성

추가 정보

적용 대상