AsyncTaskMethodBuilder Structure

July 28, 2014

Represents a builder for asynchronous methods that return a task.

Namespace:  System.Runtime.CompilerServices
Assembly:  mscorlib (in mscorlib.dll)

public struct AsyncTaskMethodBuilder

The AsyncTaskMethodBuilder type exposes the following members.

  NameDescription
Public propertyTaskGets the task for this builder.
Top

  NameDescription
Public methodAwaitOnCompleted<TAwaiter, TStateMachine>Schedules the state machine to proceed to the next action when the specified awaiter completes.
Public methodAwaitUnsafeOnCompleted<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 methodStatic memberCreateCreates an instance of the AsyncTaskMethodBuilder class.
Public methodEqualsIndicates whether this instance and a specified object are equal. (Inherited from ValueType.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeReturns the hash code for this instance. (Inherited from ValueType.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSetExceptionMarks the task as failed and binds the specified exception to the task.
Public methodSetResultMarks the task as successfully completed.
Public methodSetStateMachineAssociates the builder with the specified state machine.
Public methodStart<TStateMachine>Begins running the builder with the associated state machine.
Public methodToStringReturns the fully qualified type name of this instance. (Inherited from ValueType.)
Top

This type and its members are intended for use by the compiler.

Windows Phone OS

Supported in: 8.1, 8.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Show:
© 2014 Microsoft