Edit

Share via


NSUrlSession.CreateDownloadTaskFromResumeDataAsync Method

Definition

Overloads

CreateDownloadTaskFromResumeDataAsync(NSData)
CreateDownloadTaskFromResumeDataAsync(NSData, NSUrlSessionDownloadTask)

CreateDownloadTaskFromResumeDataAsync(NSData)

public virtual System.Threading.Tasks.Task<Foundation.NSUrlSessionDownloadTaskRequest> CreateDownloadTaskFromResumeDataAsync (Foundation.NSData resumeData);
abstract member CreateDownloadTaskFromResumeDataAsync : Foundation.NSData -> System.Threading.Tasks.Task<Foundation.NSUrlSessionDownloadTaskRequest>
override this.CreateDownloadTaskFromResumeDataAsync : Foundation.NSData -> System.Threading.Tasks.Task<Foundation.NSUrlSessionDownloadTaskRequest>

Parameters

resumeData
NSData

Returns

A task that represents the asynchronous CreateDownloadTaskFromResumeData operation. The value of the TResult parameter is of type Action<Foundation.NSUrlSessionDownloadTaskRequest>.

Remarks

The downloaded content is stored in a temporary file, whose path is stored in the returned NSUrlSessionDownloadTaskRequest instance. Since this is a temporary file, it will be deleted once the NSUrlSessionDownloadTaskRequest instance is garbage collected (or disposed).

Applies to

CreateDownloadTaskFromResumeDataAsync(NSData, NSUrlSessionDownloadTask)

public virtual System.Threading.Tasks.Task<Foundation.NSUrlSessionDownloadTaskRequest> CreateDownloadTaskFromResumeDataAsync (Foundation.NSData resumeData, out Foundation.NSUrlSessionDownloadTask result);
abstract member CreateDownloadTaskFromResumeDataAsync : Foundation.NSData *  -> System.Threading.Tasks.Task<Foundation.NSUrlSessionDownloadTaskRequest>
override this.CreateDownloadTaskFromResumeDataAsync : Foundation.NSData *  -> System.Threading.Tasks.Task<Foundation.NSUrlSessionDownloadTaskRequest>

Parameters

resumeData
NSData

Returns

Applies to