Marshal.GetExceptionCode 메서드

정의

주의

GetExceptionCode() may be unavailable in future releases.

발생한 예외의 형식을 식별하는 코드를 검색합니다.Retrieves a code that identifies the type of the exception that occurred.

public:
 static int GetExceptionCode();
[System.Obsolete("GetExceptionCode() may be unavailable in future releases.")]
[System.Security.SecurityCritical]
public static int GetExceptionCode ();
[System.Obsolete("GetExceptionCode() may be unavailable in future releases.")]
public static int GetExceptionCode ();
public static int GetExceptionCode ();
[System.Security.SecurityCritical]
public static int GetExceptionCode ();
[<System.Obsolete("GetExceptionCode() may be unavailable in future releases.")>]
[<System.Security.SecurityCritical>]
static member GetExceptionCode : unit -> int
[<System.Obsolete("GetExceptionCode() may be unavailable in future releases.")>]
static member GetExceptionCode : unit -> int
static member GetExceptionCode : unit -> int
[<System.Security.SecurityCritical>]
static member GetExceptionCode : unit -> int
Public Shared Function GetExceptionCode () As Integer

반환

Int32

예외의 형식입니다.The type of the exception.

특성

설명

GetExceptionCode 는 SEH (구조적 예외 처리)의 컴파일러 지원에만 노출 됩니다.GetExceptionCode is exposed for compiler support of structured exception handling (SEH) only. 예외가 throw 되기 전에이 메서드를 호출 하면 0x0이 반환 됩니다.If this method is called before an exception is thrown, it returns 0x0.

적용 대상