NSUrlConnection.FromRequest(NSUrlRequest, INSUrlConnectionDelegate) 方法

定义

[Foundation.Export("connectionWithRequest:delegate:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'NSUrlSession' instead.")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.None, "Use 'NSUrlSession' instead.")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public static Foundation.NSUrlConnection FromRequest (Foundation.NSUrlRequest request, Foundation.INSUrlConnectionDelegate connectionDelegate);
static member FromRequest : Foundation.NSUrlRequest * Foundation.INSUrlConnectionDelegate -> Foundation.NSUrlConnection

参数

request
NSUrlRequest
connectionDelegate
INSUrlConnectionDelegate

返回

属性

适用于