Marshal.GetExceptionForHR Method
.NET Framework 2.0
Converts an HRESULT error code to a corresponding Exception object.
| Name | Description |
|---|---|
| Marshal.GetExceptionForHR (Int32) | Converts the specified HRESULT error code to a corresponding Exception object. Supported by the .NET Compact Framework. |
| Marshal.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. |