Edit

Share via


NSUrlSession.CreateDataTaskAsync Method

Definition

Overloads

CreateDataTaskAsync(NSUrl, NSUrlSessionDataTask)
CreateDataTaskAsync(NSUrlRequest, NSUrlSessionDataTask)
CreateDataTaskAsync(NSUrl)
CreateDataTaskAsync(NSUrlRequest)

CreateDataTaskAsync(NSUrl, NSUrlSessionDataTask)

public virtual System.Threading.Tasks.Task<Foundation.NSUrlSessionDataTaskRequest> CreateDataTaskAsync (Foundation.NSUrl url, out Foundation.NSUrlSessionDataTask result);
abstract member CreateDataTaskAsync : Foundation.NSUrl *  -> System.Threading.Tasks.Task<Foundation.NSUrlSessionDataTaskRequest>
override this.CreateDataTaskAsync : Foundation.NSUrl *  -> System.Threading.Tasks.Task<Foundation.NSUrlSessionDataTaskRequest>

Parameters

url
NSUrl

Returns

Applies to

CreateDataTaskAsync(NSUrlRequest, NSUrlSessionDataTask)

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

Parameters

request
NSUrlRequest

Returns

Applies to

CreateDataTaskAsync(NSUrl)

public virtual System.Threading.Tasks.Task<Foundation.NSUrlSessionDataTaskRequest> CreateDataTaskAsync (Foundation.NSUrl url);
abstract member CreateDataTaskAsync : Foundation.NSUrl -> System.Threading.Tasks.Task<Foundation.NSUrlSessionDataTaskRequest>
override this.CreateDataTaskAsync : Foundation.NSUrl -> System.Threading.Tasks.Task<Foundation.NSUrlSessionDataTaskRequest>

Parameters

url
NSUrl

Returns

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

Applies to

CreateDataTaskAsync(NSUrlRequest)

public virtual System.Threading.Tasks.Task<Foundation.NSUrlSessionDataTaskRequest> CreateDataTaskAsync (Foundation.NSUrlRequest request);
abstract member CreateDataTaskAsync : Foundation.NSUrlRequest -> System.Threading.Tasks.Task<Foundation.NSUrlSessionDataTaskRequest>
override this.CreateDataTaskAsync : Foundation.NSUrlRequest -> System.Threading.Tasks.Task<Foundation.NSUrlSessionDataTaskRequest>

Parameters

request
NSUrlRequest

Returns

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

Applies to