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 ();
[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が返されます。

適用対象