NSUrlSession.CreateDataTaskAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
- result
- NSUrlSessionDataTask
返回
适用于
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
- result
- NSUrlSessionDataTask
返回
适用于
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>
。