Bagikan melalui


Marshal.GetExceptionCode Metode

Definisi

Perhatian

GetExceptionCode() may be unavailable in future releases.

Mengambil kode yang mengidentifikasi jenis pengecualian yang terjadi.

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

Mengembalikan

Jenis pengecualian.

Atribut

Keterangan

GetExceptionCode hanya diekspos untuk dukungan pengkompilasi penanganan pengecualian terstruktur (SEH). Jika metode ini dipanggil sebelum pengecualian dilemparkan, metode ini mengembalikan 0x0.

Berlaku untuk