TaskExecutionContext.IsCancelable 属性

定义

获取或设置一个值,该值指示是否可以取消任务。

public:
 property bool IsCancelable { bool get(); void set(bool value); };
public bool IsCancelable { get; set; }
member this.IsCancelable : bool with get, set
Public Property IsCancelable As Boolean

属性值

如果可以取消该任务,则为 true;否则为 false

实现

适用于