AsyncCodeActivityContext.IsCancellationRequested 属性

定义

获取一个值,该值指示当前正在执行的 AsyncCodeActivity 是否取消。

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

属性值

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

适用于