HttpListenerException 생성자

정의

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

오버로드

Name Description
HttpListenerException()

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

HttpListenerException(Int32)

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

HttpListenerException(Int32, String)

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

HttpListenerException(SerializationInfo, StreamingContext)

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

HttpListenerException()

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

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

설명

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

적용 대상

HttpListenerException(Int32)

지정된 오류 코드를 사용하여 클래스의 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)

지정된 오류 코드 및 메시지를 사용하여 클래스의 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

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

설명

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

적용 대상

HttpListenerException(SerializationInfo, StreamingContext)

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

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

매개 변수

serializationInfo
SerializationInfo

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

streamingContext
StreamingContext

StreamingContext 개체입니다.

추가 정보

적용 대상