ErrorHandler.Failed(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Checks if a HRESULT is an error return code.
public:
static bool Failed(int hr);
public:
static bool Failed(int hr);
static bool Failed(int hr);
public static bool Failed (int hr);
static member Failed : int -> bool
Public Shared Function Failed (hr As Integer) As Boolean
Parameters
- hr
- Int32
The HRESULT to test.
Returns
true if hr represents an error, false otherwise.