Bagikan melalui


NSUrlSession.GetTasks(NSUrlSessionPendingTasks) Metode

Definisi

Perhatian

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

Meminta grup tugas yang tertunda (data, unggah, dan unduhan).

[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

Parameter

completionHandler
NSUrlSessionPendingTasks

Metode untuk memanggil ketika informasi tentang tugas siap.

Atribut

Berlaku untuk