NSUrlSession.GetTasksAsync 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).
[System.Obsolete("Use GetTasks2 instead. This method may throw spurious InvalidCastExceptions, in particular for backgrounded tasks.", false)]
public virtual System.Threading.Tasks.Task<Foundation.NSUrlSessionActiveTasks> GetTasksAsync ();
abstract member GetTasksAsync : unit -> System.Threading.Tasks.Task<Foundation.NSUrlSessionActiveTasks>
override this.GetTasksAsync : unit -> System.Threading.Tasks.Task<Foundation.NSUrlSessionActiveTasks>
Returns
A task that represents the asynchronous GetTasks operation. The value of the TResult parameter is of type Action<Foundation.NSUrlSessionActiveTasks>
.
- Attributes