[]
Result structure for COM methods.
public struct HResult : IEquatable<HResult>
Name | Description |
---|---|
HResult(int) | Initializes a new instance of the HResult struct. |
HResult(uint) | Initializes a new instance of the HResult struct. |
Name | Description |
---|---|
Abort | Result code Abort. |
AccessDenied | Result code AccessDenied. |
Fail | Result code Fail. |
False | Result code False. |
Handle | Result code Handle. |
InsufficientBuffer | The data area passed to a system call is too small. |
InvalidArg | Result code invalid argument. |
InvalidPointer | Result code Invalid pointer. |
NoInterface | Result code no interface. |
NotImplemented | Result code not implemented. |
Ok | Result code Ok. |
OutOfMemory | Result code out of memory. |
UnexpectedFailure | Unexpected failure. |
WaitAbandoned | Result of a wait abandonned. |
WaitTimeout | Result of a wait timeout. |
Name | Description |
---|---|
Code | Gets the HRESULT error code. |
Failure | Gets a value indicating whether this HResult is failure. |
Success | Gets a value indicating whether this HResult is success. |
Name | Description |
---|---|
CheckError() | Checks the error. |
Equals(HResult) | Equalses the specified other. |
Equals(object) | Determines whether the specified object is equal to this instance. |
GetHashCode() | Returns a hash code for this instance. |
GetResultFromException(Exception) | |
GetResultFromWin32Error(int) | Gets the result from win32 error. |
ToString() | Returns a string that represents this instance. |
Name | Description |
---|---|
operator ==(HResult, HResult) | Implements the operator ==. |
explicit operator int(HResult) | |
explicit operator uint(HResult) | |
implicit operator HResult(int) | |
implicit operator HResult(uint) | |
operator !=(HResult, HResult) | Implements the operator !=. |