This documentation is archived and is not being maintained.

Marshal.GetExceptionForHR Method

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.
Show: