Cocktail Help Reference
OperationResult Class Members
See Also  Properties  Methods  Send Feedback
Cocktail Assembly > Cocktail Namespace : OperationResult Class


Glossary Item Box

The following tables list the members exposed by OperationResult.

Public Constructors

 NameDescription
Public ConstructorOperationResult ConstructorConstructs a wrapper around the provided asynchronous function.  
Top

Public Properties

 NameDescription
Public PropertyCancelledReturns whether the operation was cancelled.  
Public PropertyCompletedSuccessfullyReturns whether the operation completed successfully.  
Public PropertyErrorReturns the exception if the operation failed.  
Public PropertyHasErrorReturns whether the operation failed.  
Public PropertyIsCompletedReturns whether the operation is completed regardless of whether it was cancelled or failed.  
Public PropertyIsErrorHandledReturns whether the error was handled.  
Top

Public Methods

 NameDescription
Public MethodAsTaskReturns a Task for the current OperationResult.  
Public Methodstatic (Shared in Visual Basic)FromError<T>Creates a failed OperationResult<T> with the specified error.  
Public Methodstatic (Shared in Visual Basic)FromResult<T>Creates an OperationResult<T> that is completed successfully with the specified result.  
Top

Public Operators

public Operator Implicit Type Conversion Implicitly converts the current OperationResult to type System.Threading.Tasks.Task
Top

See Also

© 2012 All Rights Reserved.