Win32Exception 생성자

정의

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

오버로드

Name Description
Win32Exception()

마지막으로 발생한 Win32 오류를 사용하여 클래스의 Win32Exception 새 인스턴스를 초기화합니다.

Win32Exception(Int32)

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

Win32Exception(String)

지정된 자세한 설명을 사용하여 클래스의 Win32Exception 새 인스턴스를 초기화합니다.

Win32Exception(Int32, String)

지정된 오류와 지정된 자세한 설명을 사용하여 클래스의 Win32Exception 새 인스턴스를 초기화합니다.

Win32Exception(SerializationInfo, StreamingContext)

지정된 컨텍스트 및 serialization 정보를 사용하여 클래스의 Win32Exception 새 인스턴스를 초기화합니다.

Win32Exception(String, Exception)

지정된 자세한 설명과 지정된 예외를 Win32Exception 사용하여 클래스의 새 인스턴스를 초기화합니다.

Win32Exception()

마지막으로 발생한 Win32 오류를 사용하여 클래스의 Win32Exception 새 인스턴스를 초기화합니다.

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

설명

오류에 대한 자세한 설명은 오류와 관련된 Win32 오류 메시지에 의해 결정됩니다.

이 생성자는 메서드를 GetLastWin32ErrorMarshal 사용하여 오류 코드를 가져옵니다.

적용 대상

Win32Exception(Int32)

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

public:
 Win32Exception(int error);
public Win32Exception(int error);
new System.ComponentModel.Win32Exception : int -> System.ComponentModel.Win32Exception
Public Sub New (error As Integer)

매개 변수

error
Int32

이 예외와 연결된 Win32 오류 코드입니다.

설명

오류에 대한 자세한 설명은 오류와 관련된 Win32 오류 메시지에 의해 결정됩니다.

적용 대상

Win32Exception(String)

지정된 자세한 설명을 사용하여 클래스의 Win32Exception 새 인스턴스를 초기화합니다.

public:
 Win32Exception(System::String ^ message);
public Win32Exception(string message);
new System.ComponentModel.Win32Exception : string -> System.ComponentModel.Win32Exception
Public Sub New (message As String)

매개 변수

message
String

오류에 대한 자세한 설명입니다.

적용 대상

Win32Exception(Int32, String)

지정된 오류와 지정된 자세한 설명을 사용하여 클래스의 Win32Exception 새 인스턴스를 초기화합니다.

public:
 Win32Exception(int error, System::String ^ message);
public Win32Exception(int error, string message);
new System.ComponentModel.Win32Exception : int * string -> System.ComponentModel.Win32Exception
Public Sub New (error As Integer, message As String)

매개 변수

error
Int32

이 예외와 연결된 Win32 오류 코드입니다.

message
String

오류에 대한 자세한 설명입니다.

설명

오류에 대한 자세한 설명은 오류와 관련된 Win32 오류 메시지에 의해 결정됩니다.

적용 대상

Win32Exception(SerializationInfo, StreamingContext)

지정된 컨텍스트 및 serialization 정보를 사용하여 클래스의 Win32Exception 새 인스턴스를 초기화합니다.

protected:
 Win32Exception(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected Win32Exception(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.ComponentModel.Win32Exception : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.ComponentModel.Win32Exception
Protected Sub New (info As SerializationInfo, context As StreamingContext)

매개 변수

info
SerializationInfo

SerializationInfo 예외와 연결된 경우

context
StreamingContext

이 예외의 컨텍스트를 나타내는 A StreamingContext 입니다.

적용 대상

Win32Exception(String, Exception)

지정된 자세한 설명과 지정된 예외를 Win32Exception 사용하여 클래스의 새 인스턴스를 초기화합니다.

public:
 Win32Exception(System::String ^ message, Exception ^ innerException);
public Win32Exception(string message, Exception innerException);
new System.ComponentModel.Win32Exception : string * Exception -> System.ComponentModel.Win32Exception
Public Sub New (message As String, innerException As Exception)

매개 변수

message
String

오류에 대한 자세한 설명입니다.

innerException
Exception

이 예외의 원인인 내부 예외에 대한 참조입니다.

적용 대상