NSUrlSession.CreateDownloadTask 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.
Overloads
CreateDownloadTask(NSData) |
Creates a download task for a previously canceled or failed download. |
CreateDownloadTask(NSUrl) | |
CreateDownloadTask(NSUrlRequest) | |
CreateDownloadTask(NSUrl, NSUrlDownloadSessionResponse) | |
CreateDownloadTask(NSUrlRequest, NSUrlDownloadSessionResponse) |
CreateDownloadTask(NSData)
Creates a download task for a previously canceled or failed download.
[Foundation.Export("downloadTaskWithResumeData:")]
public virtual Foundation.NSUrlSessionDownloadTask CreateDownloadTask (Foundation.NSData resumeData);
abstract member CreateDownloadTask : Foundation.NSData -> Foundation.NSUrlSessionDownloadTask
override this.CreateDownloadTask : Foundation.NSData -> Foundation.NSUrlSessionDownloadTask
Parameters
- resumeData
- NSData
Returns
- Attributes
Applies to
CreateDownloadTask(NSUrl)
[Foundation.Export("downloadTaskWithURL:")]
public virtual Foundation.NSUrlSessionDownloadTask CreateDownloadTask (Foundation.NSUrl url);
abstract member CreateDownloadTask : Foundation.NSUrl -> Foundation.NSUrlSessionDownloadTask
override this.CreateDownloadTask : Foundation.NSUrl -> Foundation.NSUrlSessionDownloadTask
Parameters
- url
- NSUrl
Returns
- Attributes
Applies to
CreateDownloadTask(NSUrlRequest)
[Foundation.Export("downloadTaskWithRequest:")]
public virtual Foundation.NSUrlSessionDownloadTask CreateDownloadTask (Foundation.NSUrlRequest request);
abstract member CreateDownloadTask : Foundation.NSUrlRequest -> Foundation.NSUrlSessionDownloadTask
override this.CreateDownloadTask : Foundation.NSUrlRequest -> Foundation.NSUrlSessionDownloadTask
Parameters
- request
- NSUrlRequest
Returns
- Attributes
Applies to
CreateDownloadTask(NSUrl, NSUrlDownloadSessionResponse)
[Foundation.Export("downloadTaskWithURL:completionHandler:")]
public virtual Foundation.NSUrlSessionDownloadTask CreateDownloadTask (Foundation.NSUrl url, Foundation.NSUrlDownloadSessionResponse completionHandler);
abstract member CreateDownloadTask : Foundation.NSUrl * Foundation.NSUrlDownloadSessionResponse -> Foundation.NSUrlSessionDownloadTask
override this.CreateDownloadTask : Foundation.NSUrl * Foundation.NSUrlDownloadSessionResponse -> Foundation.NSUrlSessionDownloadTask
Parameters
- url
- NSUrl
Returns
- Attributes
Applies to
CreateDownloadTask(NSUrlRequest, NSUrlDownloadSessionResponse)
[Foundation.Export("downloadTaskWithRequest:completionHandler:")]
public virtual Foundation.NSUrlSessionDownloadTask CreateDownloadTask (Foundation.NSUrlRequest request, Foundation.NSUrlDownloadSessionResponse completionHandler);
abstract member CreateDownloadTask : Foundation.NSUrlRequest * Foundation.NSUrlDownloadSessionResponse -> Foundation.NSUrlSessionDownloadTask
override this.CreateDownloadTask : Foundation.NSUrlRequest * Foundation.NSUrlDownloadSessionResponse -> Foundation.NSUrlSessionDownloadTask
Parameters
- request
- NSUrlRequest
Returns
- Attributes