Condividi tramite


NSUrlConnection.SendAsynchronousRequest Metodo

Definizione

Carica i dati e richiama un metodo al completamento.

[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

Parametri

request
NSUrlRequest

Richiesta di esecuzione

queue
NSOperationQueue

Coda di operazioni a cui inviare il completamento.

completionHandler
NSUrlConnectionDataResponse

Metodo richiamato al completamento

Attributi

Si applica a