AsyncTaskMethodBuilder(TResult) Methods

AsyncTaskMethodBuilder(Of TResult) Methods

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

The AsyncTaskMethodBuilder(Of TResult) type exposes the following members.

  NameDescription
Public method AwaitOnCompleted(Of TAwaiter, TStateMachine) Schedules the state machine to proceed to the next action when the specified awaiter completes.
Public method AwaitUnsafeOnCompleted(Of 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(Of TResult) class.
Public method Equals Indicates whether this instance and a specified object are equal. (Inherited from ValueType.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
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.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (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(Of 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:
© 2017 Microsoft