Marshal.GetExceptionCode 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
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。