Compartilhar via


NSUrlSession.CreateDownloadTask Método

Definição

Sobrecargas

CreateDownloadTask(NSData)

Cria uma tarefa de download para um download cancelado ou com falha anteriormente.

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

CreateDownloadTask(NSData)

Cria uma tarefa de download para um download cancelado ou com falha anteriormente.

[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

Retornos

Atributos

Aplica-se 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

Retornos

Atributos

Aplica-se 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

Retornos

Atributos

Aplica-se 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

A ser adicionado.

Esse parâmetro pode ser null.

Retornos

Atributos

Aplica-se 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

A ser adicionado.

Esse parâmetro pode ser null.

Retornos

Atributos

Aplica-se a