TaskExecutionContext.IsCancelRequested 属性

定义

获得一个值,表示是否存在取消任务的请求。

public:
 property bool IsCancelRequested { bool get(); };
public bool IsCancelRequested { get; }
member this.IsCancelRequested : bool
Public ReadOnly Property IsCancelRequested As Boolean

属性值

true如果有取消任务的请求;否则,。 false

实现

适用于