Compartir a través de


NSUrlSession.GetTasks(NSUrlSessionPendingTasks) Método

Definición

Precaución

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

Solicita los grupos de tareas pendientes (datos, carga y descargas).

[Foundation.Export("getTasksWithCompletionHandler:")]
[System.Obsolete("Use GetTasks2 instead. This method may throw spurious InvalidCastExceptions, in particular for backgrounded tasks.", false)]
public virtual void GetTasks (Foundation.NSUrlSessionPendingTasks completionHandler);
abstract member GetTasks : Foundation.NSUrlSessionPendingTasks -> unit
override this.GetTasks : Foundation.NSUrlSessionPendingTasks -> unit

Parámetros

completionHandler
NSUrlSessionPendingTasks

Método para invocar cuando la información sobre las tareas está lista.

Atributos

Se aplica a