AsyncCodeActivityContext.IsCancellationRequested 属性

定义

获取用于指示是否要取消当前正在执行的 AsyncCodeActivity 的值。

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

属性值

如果要取消当前正在执行的 AsyncCodeActivity,则为 true;否则为 false

适用于