Visual Basic (Declaration)
Visual Basic (Usage)
C#
C++/CLI
Parameters
- hresult
- The hresult.
Return Value
A System.ExceptionIf hresult is 0 then an Exception is thrown stating that it is not a valid error
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2