Edytuj

Udostępnij za pośrednictwem


NSUrlSession.GetTasks(NSUrlSessionPendingTasks) 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).

[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

Parameters

completionHandler
NSUrlSessionPendingTasks

Method to invoke when the information about the tasks is ready.

Attributes

Applies to