Compartir a través de


NSUrlSession.CreateDownloadTask Método

Definición

Sobrecargas

CreateDownloadTask(NSData)

Crea una tarea de descarga para una descarga cancelada o errónea previamente.

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

CreateDownloadTask(NSData)

Crea una tarea de descarga para una descarga cancelada o errónea previamente.

[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

Parámetros

resumeData
NSData

Devoluciones

Atributos

Se aplica a

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

Parámetros

url
NSUrl

Devoluciones

Atributos

Se aplica a

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

Parámetros

request
NSUrlRequest

Devoluciones

Atributos

Se aplica a

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

Parámetros

url
NSUrl
completionHandler
NSUrlDownloadSessionResponse

Se agregará.

Este parámetro puede ser null.

Devoluciones

Atributos

Se aplica a

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

Parámetros

request
NSUrlRequest
completionHandler
NSUrlDownloadSessionResponse

Se agregará.

Este parámetro puede ser null.

Devoluciones

Atributos

Se aplica a