ErrorHandler.ThrowOnFailure Method (Int32)
Determines whether the parameter is a success or failure HRESULT and throws an exception in case of failure.
Namespace: Microsoft.VisualStudio
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'Declaração
Public Shared Function ThrowOnFailure ( _
hr As Integer _
) As Integer
public static int ThrowOnFailure(
int hr
)
Parameters
- hr
Type: System.Int32
The HRESULT to test.
Return Value
Type: System.Int32
The HRESULT.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio Namespace