NSUrlSession.GetTasks(NSUrlSessionPendingTasks) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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