NSUrlSession.CreateUploadTaskAsync 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
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
- result
- NSUrlSessionUploadTask
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
- result
- NSUrlSessionUploadTask