1 <?xml version="1.0" encoding="utf-8"?>
2 <Type Name="TaskAwaiter" FullName="System.Runtime.CompilerServices.TaskAwaiter">
3 <TypeSignature Language="C#" Value="public struct TaskAwaiter : System.Runtime.CompilerServices.ICriticalNotifyCompletion" />
4 <TypeSignature Language="ILAsm" Value=".class public sequential ansi sealed beforefieldinit TaskAwaiter extends System.ValueType implements class System.Runtime.CompilerServices.ICriticalNotifyCompletion, class System.Runtime.CompilerServices.INotifyCompletion" />
6 <AssemblyName>mscorlib</AssemblyName>
7 <AssemblyVersion>4.0.0.0</AssemblyVersion>
10 <BaseTypeName>System.ValueType</BaseTypeName>
14 <InterfaceName>System.Runtime.CompilerServices.ICriticalNotifyCompletion</InterfaceName>
19 <attribution license="cc4" from="Microsoft" modified="false" />
20 <para>This type and its members are intended for use by the compiler.</para>
23 <attribution license="cc4" from="Microsoft" modified="false" />
24 <para>Provides an object that waits for the completion of an asynchronous task.</para>
28 <Member MemberName="GetResult">
29 <MemberSignature Language="C#" Value="public void GetResult ();" />
30 <MemberSignature Language="ILAsm" Value=".method public hidebysig instance void GetResult() cil managed" />
31 <MemberType>Method</MemberType>
33 <AssemblyVersion>4.0.0.0</AssemblyVersion>
36 <ReturnType>System.Void</ReturnType>
41 <attribution license="cc4" from="Microsoft" modified="false" />
42 <para>This type and its members are intended for use by the compiler.</para>
45 <attribution license="cc4" from="Microsoft" modified="false" />
46 <para>Ends the wait for the completion of the asynchronous task.</para>
50 <Member MemberName="IsCompleted">
51 <MemberSignature Language="C#" Value="public bool IsCompleted { get; }" />
52 <MemberSignature Language="ILAsm" Value=".property instance bool IsCompleted" />
53 <MemberType>Property</MemberType>
55 <AssemblyVersion>4.0.0.0</AssemblyVersion>
58 <ReturnType>System.Boolean</ReturnType>
61 <value>To be added.</value>
63 <attribution license="cc4" from="Microsoft" modified="false" />
64 <para>This type and its members are intended for use by the compiler.</para>
67 <attribution license="cc4" from="Microsoft" modified="false" />
68 <para>Gets a value that indicates whether the asynchronous task has completed.</para>
72 <Member MemberName="OnCompleted">
73 <MemberSignature Language="C#" Value="public void OnCompleted (Action continuation);" />
74 <MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void OnCompleted(class System.Action continuation) cil managed" />
75 <MemberType>Method</MemberType>
77 <AssemblyVersion>4.0.0.0</AssemblyVersion>
80 <ReturnType>System.Void</ReturnType>
83 <Parameter Name="continuation" Type="System.Action" />
87 <attribution license="cc4" from="Microsoft" modified="false" />
88 <para>This type and its members are intended for use by the compiler.</para>
91 <attribution license="cc4" from="Microsoft" modified="false" />
92 <para>Sets the action to perform when the <see cref="T:System.Runtime.CompilerServices.TaskAwaiter" /> object stops waiting for the asynchronous task to complete.</para>
94 <param name="continuation">
95 <attribution license="cc4" from="Microsoft" modified="false" />The action to perform when the wait operation completes.</param>
98 <Member MemberName="UnsafeOnCompleted">
99 <MemberSignature Language="C#" Value="public void UnsafeOnCompleted (Action continuation);" />
100 <MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void UnsafeOnCompleted(class System.Action continuation) cil managed" />
101 <MemberType>Method</MemberType>
103 <AssemblyVersion>4.0.0.0</AssemblyVersion>
106 <ReturnType>System.Void</ReturnType>
109 <Parameter Name="continuation" Type="System.Action" />
112 <remarks>To be added.</remarks>
114 <attribution license="cc4" from="Microsoft" modified="false" />
115 <para>Schedules the continuation action for the asynchronous task that is associated with this awaiter.</para>
117 <param name="continuation">
118 <attribution license="cc4" from="Microsoft" modified="false" />The action to invoke when the await operation completes.</param>