The following tables list the members exposed by OperationResult.
Name | Description | |
---|---|---|
![]() | OperationResult Constructor | Constructs a wrapper around the provided asynchronous function. |
Name | Description | |
---|---|---|
![]() | Cancelled | Returns whether the operation was cancelled. |
![]() | CompletedSuccessfully | Returns whether the operation completed successfully. |
![]() | Error | Returns the exception if the operation failed. |
![]() | HasError | Returns whether the operation failed. |
![]() | IsCompleted | Returns whether the operation is completed regardless of whether it was cancelled or failed. |
![]() | IsErrorHandled | Returns whether the error was handled. |
Name | Description | |
---|---|---|
![]() | AsTask | Returns a Task for the current OperationResult. |
![]() ![]() | FromError<T> | Creates a failed OperationResult<T> with the specified error. |
![]() ![]() | FromResult<T> | Creates an OperationResult<T> that is completed successfully with the specified result. |
![]() | Implicitly converts the current OperationResult to type System.Threading.Tasks.Task |