共用方式為


NSUrlSession.GetTasks(NSUrlSessionPendingTasks) 方法

定義

警告

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

要求暫止工作群組 (資料、上傳和下載) 。

[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

參數

completionHandler
NSUrlSessionPendingTasks

當工作的相關資訊就緒時,叫用的方法。

屬性

適用於