Marshal.GetExceptionCode 方法

定義

警告

GetExceptionCode() may be unavailable in future releases.

取得一個代碼,用以識別該例外的類型。

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

傳回

例外的類型。

屬性

備註

GetExceptionCode 僅為結構化異常處理(SEH)編譯器支援而公開。 如果在拋出例外前呼叫此方法,則回傳 0x0。

適用於