Cancels this job and waits for any asynchronous server-side operations to be canceled.
public Task<bool> CancelAsync()
The task returns
The job is canceled and will result in a Failed status after all cancellation tasks have completed. For jobs running on a server, a cancel request is sent for the associated ServerJobId. You should always cancel unneeded jobs (for example when exiting your app) to avoid placing unnecessary load on the server. Examples of server- side jobs include:
In addition, the GenerateOfflineMapJob is composed of several server-side jobs, depending on the types of layers in your Map. Canceling this high-level job will also send a cancel request to the underlying server jobs.
Platforms and versions
|.NET Standard 2.0||100.14 - 200.0|
|.NET 6.0||100.14 - 200.0|
|.NET 6.0 Windows||100.14 - 200.0|
|.NET 6.0 Android||200|
|.NET 6.0 iOS||200|
|.NET Framework||100.14 - 200.0|
|Android||100.14 - 100.15|
|iOS||100.14 - 100.15|
|UWP||100.14 - 200.0|