Поделиться через


NSUrlSession.CreateDataTaskAsync Метод

Определение

Перегрузки

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>

Параметры

url
NSUrl

Возвращаемое значение

Применяется к

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>

Параметры

request
NSUrlRequest

Возвращаемое значение

Применяется к

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>

Параметры

url
NSUrl

Возвращаемое значение

Задача, представляющая асинхронную операцию CreateDataTask. Значение параметра TResult имеет тип Action<Foundation.NSUrlSessionDataTaskRequest>.

Применяется к

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>

Параметры

request
NSUrlRequest

Возвращаемое значение

Задача, представляющая асинхронную операцию CreateDataTask. Значение параметра TResult имеет тип Action<Foundation.NSUrlSessionDataTaskRequest>.

Применяется к