The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
Marshal::GetExceptionForHR Method
.NET Framework (current version)
Converts an HRESULT error code to a corresponding Exception object.
Assembly: mscorlib (in mscorlib.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | GetExceptionForHR(Int32) | Converts the specified HRESULT error code to a corresponding Exception object. |
![]() ![]() | GetExceptionForHR(Int32, IntPtr) | Converts the specified HRESULT error code to a corresponding Exception object, with additional error information passed in an IErrorInfo interface for the exception object. |
Show:

