Marshal.GetExceptionCode Metoda

Definice

Upozornění

GetExceptionCode() may be unavailable in future releases.

Načte kód, který identifikuje typ výjimky, ke které došlo.

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

Návraty

Typ výjimky.

Atributy

Poznámky

GetExceptionCode je vystaven pouze pro podporu strukturovaného zpracování výjimek (SEH) kompilátoru. Pokud je tato metoda volána před vyvolání výjimky, vrátí 0x0.

Platí pro