Marshal.GetExceptionCode 方法
定义
注意
GetExceptionCode() may be unavailable in future releases.
检索标识所发生异常的类型的代码。Retrieves a code that identifies the type of the exception that occurred.
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
返回
异常的类型。The type of the exception.
- 属性
注解
GetExceptionCode 公开,以便编译器仅支持 (SEH) 的结构化异常处理。GetExceptionCode is exposed for compiler support of structured exception handling (SEH) only. 如果在引发异常之前调用此方法,则将返回0x0。If this method is called before an exception is thrown, it returns 0x0.