共用方式為


NSUrlConnection.SendAsynchronousRequest 方法

定義

載入資料,並在完成時叫用方法。

[Foundation.Export("sendAsynchronousRequest:queue:completionHandler:")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'NSUrlSession.CreateDataTask' instead.")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.TvOS, 9, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'NSUrlSession.CreateDataTask' instead.")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.None, "Use 'NSUrlSession.CreateDataTask' instead.")]
public static void SendAsynchronousRequest (Foundation.NSUrlRequest request, Foundation.NSOperationQueue queue, Foundation.NSUrlConnectionDataResponse completionHandler);
[Foundation.Export("sendAsynchronousRequest:queue:completionHandler:")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public static void SendAsynchronousRequest (Foundation.NSUrlRequest request, Foundation.NSOperationQueue queue, Foundation.NSUrlConnectionDataResponse completionHandler);
static member SendAsynchronousRequest : Foundation.NSUrlRequest * Foundation.NSOperationQueue * Foundation.NSUrlConnectionDataResponse -> unit

參數

request
NSUrlRequest

要求執行

queue
NSOperationQueue

要分派完成的作業佇列。

completionHandler
NSUrlConnectionDataResponse

完成時叫用的方法

屬性

適用於