NSUrlSession.CreateUploadTaskAsync Method

Definition

Overloads

CreateUploadTaskAsync(NSUrlRequest, NSData)
CreateUploadTaskAsync(NSUrlRequest, NSUrl)
CreateUploadTaskAsync(NSUrlRequest, NSData, NSUrlSessionUploadTask)
CreateUploadTaskAsync(NSUrlRequest, NSUrl, NSUrlSessionUploadTask)

CreateUploadTaskAsync(NSUrlRequest, NSData)

public virtual System.Threading.Tasks.Task<Foundation.NSUrlSessionDataTaskRequest> CreateUploadTaskAsync (Foundation.NSUrlRequest request, Foundation.NSData bodyData);
abstract member CreateUploadTaskAsync : Foundation.NSUrlRequest * Foundation.NSData -> System.Threading.Tasks.Task<Foundation.NSUrlSessionDataTaskRequest>
override this.CreateUploadTaskAsync : Foundation.NSUrlRequest * Foundation.NSData -> System.Threading.Tasks.Task<Foundation.NSUrlSessionDataTaskRequest>

Parameters

request
NSUrlRequest
bodyData
NSData

Returns

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

Applies to

CreateUploadTaskAsync(NSUrlRequest, NSUrl)

public virtual System.Threading.Tasks.Task<Foundation.NSUrlSessionDataTaskRequest> CreateUploadTaskAsync (Foundation.NSUrlRequest request, Foundation.NSUrl fileURL);
abstract member CreateUploadTaskAsync : Foundation.NSUrlRequest * Foundation.NSUrl -> System.Threading.Tasks.Task<Foundation.NSUrlSessionDataTaskRequest>
override this.CreateUploadTaskAsync : Foundation.NSUrlRequest * Foundation.NSUrl -> System.Threading.Tasks.Task<Foundation.NSUrlSessionDataTaskRequest>

Parameters

request
NSUrlRequest
fileURL
NSUrl

Returns

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

Applies to

CreateUploadTaskAsync(NSUrlRequest, NSData, NSUrlSessionUploadTask)

public virtual System.Threading.Tasks.Task<Foundation.NSUrlSessionDataTaskRequest> CreateUploadTaskAsync (Foundation.NSUrlRequest request, Foundation.NSData bodyData, out Foundation.NSUrlSessionUploadTask result);
abstract member CreateUploadTaskAsync : Foundation.NSUrlRequest * Foundation.NSData *  -> System.Threading.Tasks.Task<Foundation.NSUrlSessionDataTaskRequest>
override this.CreateUploadTaskAsync : Foundation.NSUrlRequest * Foundation.NSData *  -> System.Threading.Tasks.Task<Foundation.NSUrlSessionDataTaskRequest>

Parameters

request
NSUrlRequest
bodyData
NSData

Returns

Applies to

CreateUploadTaskAsync(NSUrlRequest, NSUrl, NSUrlSessionUploadTask)

public virtual System.Threading.Tasks.Task<Foundation.NSUrlSessionDataTaskRequest> CreateUploadTaskAsync (Foundation.NSUrlRequest request, Foundation.NSUrl fileURL, out Foundation.NSUrlSessionUploadTask result);
abstract member CreateUploadTaskAsync : Foundation.NSUrlRequest * Foundation.NSUrl *  -> System.Threading.Tasks.Task<Foundation.NSUrlSessionDataTaskRequest>
override this.CreateUploadTaskAsync : Foundation.NSUrlRequest * Foundation.NSUrl *  -> System.Threading.Tasks.Task<Foundation.NSUrlSessionDataTaskRequest>

Parameters

request
NSUrlRequest
fileURL
NSUrl

Returns

Applies to