Partager via


NSUrlSession.CreateDownloadTask Méthode

Définition

Surcharges

CreateDownloadTask(NSData)

Crée une tâche de téléchargement pour un téléchargement précédemment annulé ou ayant échoué.

CreateDownloadTask(NSUrl)
CreateDownloadTask(NSUrlRequest)
CreateDownloadTask(NSUrl, NSUrlDownloadSessionResponse)
CreateDownloadTask(NSUrlRequest, NSUrlDownloadSessionResponse)

CreateDownloadTask(NSData)

Crée une tâche de téléchargement pour un téléchargement précédemment annulé ou ayant échoué.

[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

Paramètres

resumeData
NSData

Retours

Attributs

S’applique à

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

Paramètres

url
NSUrl

Retours

Attributs

S’applique à

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

Paramètres

request
NSUrlRequest

Retours

Attributs

S’applique à

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

Paramètres

url
NSUrl
completionHandler
NSUrlDownloadSessionResponse

À ajouter.

Ce paramètre peut être null.

Retours

Attributs

S’applique à

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

Paramètres

request
NSUrlRequest
completionHandler
NSUrlDownloadSessionResponse

À ajouter.

Ce paramètre peut être null.

Retours

Attributs

S’applique à