Bearbeiten

Share via


NSUrlSession.GetTasksAsync Method

Definition

Caution

Use GetTasks2 instead. This method may throw spurious InvalidCastExceptions, in particular for backgrounded tasks.

Requests the groups of pending tasks (data, upload and downloads).

[System.Obsolete("Use GetTasks2 instead. This method may throw spurious InvalidCastExceptions, in particular for backgrounded tasks.", false)]
public virtual System.Threading.Tasks.Task<Foundation.NSUrlSessionActiveTasks> GetTasksAsync ();
abstract member GetTasksAsync : unit -> System.Threading.Tasks.Task<Foundation.NSUrlSessionActiveTasks>
override this.GetTasksAsync : unit -> System.Threading.Tasks.Task<Foundation.NSUrlSessionActiveTasks>

Returns

A task that represents the asynchronous GetTasks operation. The value of the TResult parameter is of type Action<Foundation.NSUrlSessionActiveTasks>.

Attributes

Applies to