Method | Description | |
---|---|---|
Failed ( int hr ) : bool |
Checks if a HRESULT is an error return code.
|
|
Succeeded ( int hr ) : bool |
Checks if a HRESULT is a success return code.
|
|
ThrowOnFailure ( int hr ) : int |
Checks if the parameter is a success or failure HRESULT and throws an exception in case of failure.
|
Method | Description | |
---|---|---|
ErrorHandler ( ) : System |
public static Failed ( int hr ) : bool | ||
hr | int | The HRESULT to test. |
return | bool |
public static Succeeded ( int hr ) : bool | ||
hr | int | The HRESULT to test. |
return | bool |
public static ThrowOnFailure ( int hr ) : int | ||
hr | int | The HRESULT to test. |
return | int |