ErrorHandler::ThrowOnFailure Method (Int32, array<Int32>^)
Visual Studio 2015
Determines whether the parameter is a success or failure HRESULT and throws an exception if it is a failure that is not included in the array of well-known failures.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
Parameters
- hr
-
Type:
System::Int32
The HRESULT to test.
- expectedHRFailure
-
Type:
array<System::Int32>^
If hr is found in this array of expected failures no exception should be thrown.
Show: