Marshal.GetExceptionCode Метод

Определение

Внимание!

GetExceptionCode() may be unavailable in future releases.

Извлекает код, определяющий тип возникшего исключения.

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

Возвращаемое значение

Int32

Тип исключения.

Атрибуты

Комментарии

GetExceptionCode предоставляется только для поддержки компилятора структурированной обработки исключений (SEH). Если этот метод вызывается перед созданием исключения, он возвращает 0x0.

Применяется к