Class HResult
HResult
public static class HResult
- Inheritance
-
HResult
- Inherited Members
Fields
E_INVALIDARG
E_INVALIDARG (from winerror.h)
public const int E_INVALIDARG = -2147483645
Field Value
S_FALSE
S_FALSE
public const int S_FALSE = 1
Field Value
S_OK
S_OK
public const int S_OK = 0
Field Value
Methods
GetHResult(COMException)
Helper to deal with the fact that in Win Store apps, the HResult property name has changed
public static int GetHResult(this COMException exception)
Parameters
exception
COMExceptionCOM Exception
Returns
- int
The HResult
MAKE_HRESULT(int, int, int)
MAKE_HRESULT macro
public static int MAKE_HRESULT(int sev, int fac, int code)