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) 。 如果在擲回例外狀況之前呼叫這個方法,它會傳回0x0。

適用於