NativeActivityUpdateContext.IsCancellationRequested 属性

定义

获取或设置用于指示是否要取消当前正在执行的 NativeActivity 实例的值。

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

属性值

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

适用于