Marshal.GetExceptionCode Metodo

Definizione

Attenzione

GetExceptionCode() may be unavailable in future releases.

Recupera un codice che identifica il tipo dell'eccezione che si è verificata.

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

Restituisce

Tipo dell'eccezione.

Attributi

Commenti

GetExceptionCode viene esposto solo per il supporto del compilatore di gestione delle eccezioni strutturate .SEH. Se questo metodo viene chiamato prima che venga generata un'eccezione, restituisce 0x0.

Si applica a