forked from dotnet/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathICancelableTask.xml
49 lines (45 loc) · 2.09 KB
/
ICancelableTask.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<Type Name="ICancelableTask" FullName="Microsoft.Build.Framework.ICancelableTask">
<TypeSignature Language="C#" Value="public interface ICancelableTask : Microsoft.Build.Framework.ITask" />
<TypeSignature Language="ILAsm" Value=".class public interface auto ansi abstract ICancelableTask implements class Microsoft.Build.Framework.ITask" />
<TypeSignature Language="DocId" Value="T:Microsoft.Build.Framework.ICancelableTask" />
<AssemblyInfo>
<AssemblyName>Microsoft.Build.Framework</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Interfaces>
<Interface>
<InterfaceName>Microsoft.Build.Framework.ITask</InterfaceName>
</Interface>
</Interfaces>
<Docs>
<summary>Interface for tasks which can be cancelled.</summary>
<remarks>To be added.</remarks>
</Docs>
<Members>
<Member MemberName="Cancel">
<MemberSignature Language="C#" Value="public void Cancel ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void Cancel() cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Build.Framework.ICancelableTask.Cancel" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Build.Framework</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Instructs the task to exit as soon as possible, or to immediately exit if Execute is invoked after this method.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Cancel() may be called at any time after the task has been instantiated, even before <xref:Microsoft.Build.Framework.ITask.Execute%2A> is called.
Cancel calls may come in from any thread. The implementation of this method should not block indefinitely.
To cancel the build, both `Cancel` and `Execute` must return in any order.
]]></format>
</remarks>
</Docs>
</Member>
</Members>
</Type>