Compartilhar via


Método Marshal.GetExceptionCode ()

 

Dica

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.Runtime.InteropServices
Assembly:  mscorlib (em mscorlib.dll)

Sintaxe

[SecurityCriticalAttribute]
public static int GetExceptionCode()
public:
[SecurityCriticalAttribute]
static int GetExceptionCode()
[<SecurityCriticalAttribute>]
static member GetExceptionCode : unit -> int
<SecurityCriticalAttribute>
Public Shared Function GetExceptionCode As Integer

Valor Retornado

Type: System.Int32

O tipo da exceção.

Comentários

GetExceptionCodeé exposta para suporte de compilador estruturado de manipulação de exceção (SEH) apenas. Se esse método é chamado antes de uma exceção será lançada, ela retornará 0x0.

Segurança

SecurityCriticalAttribute

requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.

Informações de Versão

Plataforma Universal do Windows
Disponível desde 8
.NET Framework
Disponível desde 1.1
Biblioteca de Classes Portátil
Com suporte no: plataformas portáteis do .NET
Windows Phone
Disponível desde 8.1

Confira Também

Classe Marshal
Namespace System.Runtime.InteropServices

Retornar ao início