ThrowIfHResultError MethodSave PDFSave selected topicSave selected topic and subtopicsSave all topicsShareShare to emailCopy topic URLLast UpdatedAug 21, 20261 minute readHMI and SCADAOperations Management Interface 2026 Throws exception when HResult is not S_OK.Syntax Visual BasicC#C++/CLI 'Declaration Public Shared Sub ThrowIfHResultError( _ ByVal code As Integer _ ) public static void ThrowIfHResultError( int code ) public: static void ThrowIfHResultError( int code ) Parameterscode The HResult code. RequirementsTarget Platforms:Windows 11 Enterprise, IoT Enterprise 2024 LTSC 24H2 Windows Server 2022 LTSC Standard and Datacenter Windows Server 2025 LTSC Standard and Datacenter See AlsoReferenceThrowHelper ClassThrowHelper Members In This Topic
Throws exception when HResult is not S_OK.Syntax Visual BasicC#C++/CLI 'Declaration Public Shared Sub ThrowIfHResultError( _ ByVal code As Integer _ ) public static void ThrowIfHResultError( int code ) public: static void ThrowIfHResultError( int code ) Parameterscode The HResult code. RequirementsTarget Platforms:Windows 11 Enterprise, IoT Enterprise 2024 LTSC 24H2 Windows Server 2022 LTSC Standard and Datacenter Windows Server 2025 LTSC Standard and Datacenter See AlsoReferenceThrowHelper ClassThrowHelper Members
Throws exception when HResult is not S_OK.Syntax Visual BasicC#C++/CLI 'Declaration Public Shared Sub ThrowIfHResultError( _ ByVal code As Integer _ ) public static void ThrowIfHResultError( int code ) public: static void ThrowIfHResultError( int code ) Parameterscode The HResult code. RequirementsTarget Platforms:Windows 11 Enterprise, IoT Enterprise 2024 LTSC 24H2 Windows Server 2022 LTSC Standard and Datacenter Windows Server 2025 LTSC Standard and Datacenter See AlsoReferenceThrowHelper ClassThrowHelper Members
Throws exception when HResult is not S_OK.Syntax Visual BasicC#C++/CLI 'Declaration Public Shared Sub ThrowIfHResultError( _ ByVal code As Integer _ ) public static void ThrowIfHResultError( int code ) public: static void ThrowIfHResultError( int code ) Parameterscode The HResult code. RequirementsTarget Platforms:Windows 11 Enterprise, IoT Enterprise 2024 LTSC 24H2 Windows Server 2022 LTSC Standard and Datacenter Windows Server 2025 LTSC Standard and Datacenter See AlsoReferenceThrowHelper ClassThrowHelper Members