Class used in System.IAsyncResult when the "End" function returns an answer. E.g M:Epuck.EndGetFtion(IAsyncResult).
More...
List of all members.
Public Member Functions |
| AsyncResult (AsyncCallback asyncCallback, Object state, string name) |
| Initializes a new instance of the AsyncResult<TResult> class.
|
| AsyncResult (AsyncCallback asyncCallback, Object state) |
| Initializes a new instance of the AsyncResult<TResult> class.
|
void | SetAsCompleted (TResult result, Boolean completedSynchronously) |
| Sets a result or an Exception.
|
void | SetAsCompleted (TResult result, Boolean completedSynchronously, Exception exception) |
| Sets as completed. Added for M:BeginGetImage(IAsyncResult). Allows to set both the exception and the result if there is any.
|
new TResult | EndInvoke () |
| M:AsyncResultNoResult.EndInvoke()
|
Detailed Description
template<TResult>
class Elib::AsyncResult< TResult >
Class used in System.IAsyncResult when the "End" function returns an answer. E.g M:Epuck.EndGetFtion(IAsyncResult).
- Template Parameters:
-
TResult | The type of the result. |
Member Function Documentation
template<TResult >
Elib.AsyncResult< TResult >.AsyncResult |
( |
AsyncCallback |
asyncCallback, |
|
|
Object |
state, |
|
|
string |
name |
|
) |
| |
Initializes a new instance of the AsyncResult<TResult> class.
- Parameters:
-
asyncCallback | The async callback. |
state | The state. |
name | The name. |
template<TResult >
Elib.AsyncResult< TResult >.AsyncResult |
( |
AsyncCallback |
asyncCallback, |
|
|
Object |
state |
|
) |
| |
Initializes a new instance of the AsyncResult<TResult> class.
- Parameters:
-
asyncCallback | The async callback. |
state | The state. |
template<TResult >
void Elib.AsyncResult< TResult >.SetAsCompleted |
( |
TResult |
result, |
|
|
Boolean |
completedSynchronously |
|
) |
| |
Sets a result or an Exception.
- Parameters:
-
result | The result. |
completedSynchronously | if set to true [completed synchronously]. |
template<TResult >
void Elib.AsyncResult< TResult >.SetAsCompleted |
( |
TResult |
result, |
|
|
Boolean |
completedSynchronously, |
|
|
Exception |
exception |
|
) |
| |
Sets as completed. Added for M:BeginGetImage(IAsyncResult). Allows to set both the exception and the result if there is any.
- Parameters:
-
result | The result. |
completedSynchronously | if set to true [completed synchronously]. |
exception | The exception. |
The documentation for this class was generated from the following file: