共用方式為


Marshal.GetExceptionCode 方法

定義

警告

GetExceptionCode() may be unavailable in future releases.

擷取可辨識發生的例外狀況 (Exception) 類型的代碼。

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

傳回

例外狀況的類型。

屬性

備註

GetExceptionCode 只會針對 SEH (SEH) 結構化例外狀況處理的編譯程式支持公開。 如果在擲回例外狀況之前呼叫此方法,則會傳回0x0。

適用於