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::ThrowExceptionForHR Method
.NET Framework (current version)
Throws an exception with a specific failure HRESULT value.
Assembly: mscorlib (in mscorlib.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | ThrowExceptionForHR(Int32) | Throws an exception with a specific failure HRESULT value. |
![]() ![]() | ThrowExceptionForHR(Int32, IntPtr) | Throws an exception with a specific failure HRESULT, based on the specified IErrorInfo interface. |
Show:

