Compartir a través de


Marshal.GetExceptionCode Método

Definición

Precaución

GetExceptionCode() may be unavailable in future releases.

Devuelve el código que identifica el tipo de excepción que ocurrió.

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

Devoluciones

El tipo de la excepción.

Atributos

Comentarios

GetExceptionCode se expone para la compatibilidad del compilador solo con el control de excepciones estructurado (SEH). Si se llama a este método antes de iniciar una excepción, devuelve 0x0.

Se aplica a