Udostępnij za pośrednictwem


Marshal.GetExceptionCode Metoda

Definicja

Przestroga

GetExceptionCode() may be unavailable in future releases.

Pobiera kod identyfikujący typ wyjątku, który wystąpił.

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

Zwraca

Typ wyjątku.

Atrybuty

Uwagi

GetExceptionCode jest uwidaczniany tylko dla kompilatora obsługi wyjątków ustrukturyzowanych (SEH). Jeśli ta metoda jest wywoływana przed zgłoszeniem wyjątku, zwraca 0x0.

Dotyczy