Freigeben über


NSUrlConnection.SendAsynchronousRequest Methode

Definition

Lädt die Daten und ruft nach Abschluss eine Methode auf.

[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

Parameter

request
NSUrlRequest

Anforderung der Ausführung

queue
NSOperationQueue

Vorgangswarteschlange, an die die Vervollständigung weitergeleitet werden soll.

completionHandler
NSUrlConnectionDataResponse

Methode, die nach Abschluss aufgerufen wird

Attribute

Gilt für: