Marshal.ThrowExceptionForHR Method

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Throws an exception with a specific failure HRESULT value.

Namespace:   System.Runtime.InteropServices
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticThrowExceptionForHR(Int32)

Throws an exception with a specific failure HRESULT value.

System_CAPS_pubmethodSystem_CAPS_staticThrowExceptionForHR(Int32, IntPtr)

Throws an exception with a specific failure HRESULT, based on the specified IErrorInfo interface.

Return to top
Show: