共用方式為


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> 為 。

適用於