Export (0) Print
Expand All

YieldAwaitable.YieldAwaiter Structure

.NET Framework 4.6 and 4.5

Provides an awaiter for switching into a target environment.

Namespace:  System.Runtime.CompilerServices
Assemblies:   System.Threading.Tasks (in System.Threading.Tasks.dll)
  mscorlib (in mscorlib.dll)

public struct YieldAwaiter : ICriticalNotifyCompletion, 
	INotifyCompletion

The YieldAwaitable.YieldAwaiter type exposes the following members.

  NameDescription
Public propertyIsCompletedGets a value that indicates whether a yield is not required.
Top

  NameDescription
Public methodEqualsIndicates whether this instance and a specified object are equal. (Inherited from ValueType.)
Public methodGetHashCodeReturns the hash code for this instance. (Inherited from ValueType.)
Public methodGetResultEnds the await operation.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodOnCompletedSets the continuation to invoke.
Public methodToStringReturns the fully qualified type name of this instance. (Inherited from ValueType.)
Public methodUnsafeOnCompletedPosts the continuation back to the current context.
Top

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

.NET Framework

Supported in: 4.6, 4.5

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8

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:
© 2015 Microsoft