Method CancelAsync
CancelAsync()
Cancels this job and waits for any asynchronous server-side operations to be canceled.
Declaration
public Task<bool> CancelAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Boolean> | The task returns |
Remarks
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.
Upon calling this method, the Status is immediately set to Canceling.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.14 - 200.6 |
.NET | 100.14 - 200.6 |
.NET Windows | 100.14 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.14 - 200.6 |
Xamarin.Android | 100.14 - 100.15 |
Xamarin.iOS | 100.14 - 100.15 |
UWP | 100.14 - 200.6 |