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

有关任务的信息准备就绪时调用的方法。

属性

适用于