NSUrlSession.FromConfiguration 方法

定义

重载

FromConfiguration(NSUrlSessionConfiguration, NSUrlSessionDelegate, NSOperationQueue)
已过时.
FromConfiguration(NSUrlSessionConfiguration, INSUrlSessionDelegate, NSOperationQueue)
FromConfiguration(NSUrlSessionConfiguration)

从指定配置创建 NSUrlSession 的工厂方法。

FromConfiguration(NSUrlSessionConfiguration, NSUrlSessionDelegate, NSOperationQueue)

注意

Use the overload with a 'INSUrlSessionDelegate' parameter.

[System.Obsolete("Use the overload with a 'INSUrlSessionDelegate' parameter.", false)]
public static Foundation.NSUrlSession FromConfiguration (Foundation.NSUrlSessionConfiguration configuration, Foundation.NSUrlSessionDelegate sessionDelegate, Foundation.NSOperationQueue delegateQueue);
static member FromConfiguration : Foundation.NSUrlSessionConfiguration * Foundation.NSUrlSessionDelegate * Foundation.NSOperationQueue -> Foundation.NSUrlSession

参数

sessionDelegate
NSUrlSessionDelegate
delegateQueue
NSOperationQueue

返回

属性

适用于

FromConfiguration(NSUrlSessionConfiguration, INSUrlSessionDelegate, NSOperationQueue)

public static Foundation.NSUrlSession FromConfiguration (Foundation.NSUrlSessionConfiguration configuration, Foundation.INSUrlSessionDelegate sessionDelegate, Foundation.NSOperationQueue delegateQueue);
static member FromConfiguration : Foundation.NSUrlSessionConfiguration * Foundation.INSUrlSessionDelegate * Foundation.NSOperationQueue -> Foundation.NSUrlSession

参数

sessionDelegate
INSUrlSessionDelegate
delegateQueue
NSOperationQueue

返回

适用于

FromConfiguration(NSUrlSessionConfiguration)

从指定配置创建 NSUrlSession 的工厂方法。

[Foundation.Export("sessionWithConfiguration:")]
public static Foundation.NSUrlSession FromConfiguration (Foundation.NSUrlSessionConfiguration configuration);
static member FromConfiguration : Foundation.NSUrlSessionConfiguration -> Foundation.NSUrlSession

参数

返回

属性

适用于