Marshal.GetExceptionCode Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
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
Returns
The type of the exception.
- Attributes
Remarks
GetExceptionCode is exposed for compiler support of structured exception handling (SEH) only. If this method is called before an exception is thrown, it returns 0x0.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.