Marshal.GetExceptionCode Método

Definição

Atenção

GetExceptionCode() may be unavailable in future releases.

Recupera um código que identifica o tipo da exceção que ocorreu.

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

Devoluções

O tipo de exceção.

Atributos

Observações

GetExceptionCode está exposto apenas para suporte de compiladores para o tratamento estruturado de exceções (SEH). Se este método for chamado antes de uma exceção ser lançada, ele devolve 0x0.

Aplica-se a