AsyncVoidMethodBuilder Methods

AsyncVoidMethodBuilder Methods

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

The AsyncVoidMethodBuilder 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 AsyncVoidMethodBuilder 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 Binds an exception to the method builder.
Public method SetResult Marks the method builder 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