Export (0) Print
Expand All

AsyncTaskMethodBuilder<TResult> Methods

.NET Framework 4.5

The AsyncTaskMethodBuilder<TResult> type exposes the following members.

  Name Description
Public method AwaitOnCompleted<TAwaiter, TStateMachine> Schedules the state machine to proceed to the next action when the specified awaiter completes.
Public method AwaitUnsafeOnCompleted<TAwaiter, TStateMachine> Schedules the state machine to proceed to the next action when the specified awaiter completes. This method can be called from partially trusted code.
Public method Static member Create Creates an instance of the AsyncTaskMethodBuilder<TResult> class.
Public method Equals Indicates whether this instance and a specified object are equal. (Inherited from ValueType.)
Public method GetHashCode Returns the hash code for this instance. (Inherited from ValueType.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method SetException Marks the task as failed and binds the specified exception to the task.
Public method SetResult Marks the task as successfully completed.
Public method SetStateMachine Associates the builder with the specified state machine.
Public method Start<TStateMachine> Begins running the builder with the associated state machine.
Public method ToString Returns the fully qualified type name of this instance. (Inherited from ValueType.)
Top
Show:
© 2014 Microsoft