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.3|
|.NET||100.14 - 200.3|
|.NET Windows||100.14 - 200.3|
|.NET Android||200.0 - 200.3|
|.NET iOS||200.0 - 200.3|
|.NET Framework||100.14 - 200.3|
|Xamarin.Android||100.14 - 100.15|
|Xamarin.iOS||100.14 - 100.15|
|UWP||100.14 - 200.3|