NativeActivityContext.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

適用於